Converting to string for replace formula
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello,
I am having an issue with a formula on Alteryx. So I'm trying to replace an x with a "Yes" and a "No" with nothing. The problem is that for some reason Alteryx reads it as a Numeric field and thus doesn't accept the replace functions. Ive attached the file below.
Solved! Go to Solution.
- Labels:
- Common Use Cases
- Error Message
- Input
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@Anasitani @I think you are using two replace functions in the same tool which is causing the issue. Can you try with one Replace function and check the result ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi binuacs,
I tried but unfortunately to no avail.
Many thanks
Anas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hey @Anasitani,
Think this is what you are looking for:
I changed it to update the field not output a copy. Also you used 'AND' that is only for logical expressions. To replace both you can use two tools or one tool using this formula:
Replace( Replace([_CurrentField_],"No",NULL()) ,"x","yes")
Any questions or issues please ask :)
HTH!
Ira
