Alteryx Designer Desktop Discussions

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

IF Formula Help

arundaka03
7 - Meteor

Hi everyone

 

Quite new to Alteryx Designer and need some help with a conditional statement - think I need to do a nested IF but need some help writing the formula in the formula tool 

 

I want to do the following:

 

My gender identity is different than my sex at birthNew column and desired output
NoSame as birth gender
YesDifferent than birth gender
Prefer not to answerPrefer not to answer
  

 

Last row is blank. If blank, need the new column to be blank too.

 

Thanks,
KA

2 REPLIES 2
Qiu
20 - Arcturus
20 - Arcturus

@arundaka03 
We can use a Switch function

1122-arundaka03.PNG

AngelosPachis
16 - Nebula

Hi @arundaka03 ,

 

Here are two ways you can do it, one is using an IF statement like you said, the other is a Switch statement, which works similar to an if statement but looks nicer and cleaner if you have many clauses sometimes

 

AngelosPachis_1-1637536277247.png

 

 

Labels