Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

SWITCH text from YES to NO and NO to YES in columns...

ShantanuDagar
8 - Asteroid

Hey.

 

I have created a value checking workflow in alteryx which basically validates the values in 1 column based on a multiple conditions and sub-conditions.

 

Then the data is segregated in 2 parts. The first part is collection of fully correct data. While the second part is incorrect data.

 

But incorrect data also has just 2 possible types. (Example Yes or No. If yes is incorrect then no must be correct and vice versa)

 

 

So I want to switch all the "yes to no" and "no to yes" in that particular column to make it correct data.

Tried doing this using conditional if expression but it's throwing up errors.

3 REPLIES 3
DataNath
17 - Castor

If I'm understanding this right, you just want to switch all 'Yes' to 'No' and vice versa? @ShantanuDagar 

 

DataNath_0-1665656443106.png

MarqueeCrew
20 - Arcturus
20 - Arcturus

@ShantanuDagar ,

 

 let's try this:

 

Swich([Initial Flag], "Unknown", "Yes", 'No', "No", 'Yes')

 

 cheers,

 

mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
ShantanuDagar
8 - Asteroid

works perfect.

Labels