Alteryx Designer Desktop Discussions

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

Multiple if contains elseif troupleshoot

thummasantosh
5 - Atom

Hi,

 

Can someone help me with if contains formula for the below?

 

IF Contains([REGION],"EU" AND [TAXABILITY],"Taxable") THEN "DE AP EU RC" ELSEIF Contains([REGION],"NONEU" AND [Taxability],"Taxable") THEN "DE AP NON EU RC" ELSEIF Contains([REGION],"NONEU" AND [TAXABILITY],"Taxable") THEN "EU EXEMPT RC" ELSE "NON EU EXEMPT RC" ENDIF

 

REGIONTAXABILITYTAX CODE (RESULT)
EUTAXABLEDE AP EU RC
NONEUTAXABLEDE AP NON EU RC
EUNON TAXABLEEU EXEMPT RC
NONEUNON TAXABLENON EU EXEMPT RC
4 REPLIES 4
JosephSerpis
17 - Castor
17 - Castor

Hi @thummasantosh you need to use this syntax.

 

IF [REGION]="EU" AND [TAXABILITY] = "Taxable" THEN "DE AP EU RC" ELSEIF [REGION]="NONEU" AND [Taxability]= "Taxable" THEN "DE AP NON EU RC" ELSEIF [REGION]="EU" AND [TAXABILITY]="Non Taxable" THEN "EU EXEMPT RC" ELSE "NON EU EXEMPT RC" ENDIF

 

If_260919.PNG

 

 

smoskowitz
12 - Quasar

Are you looking for [Taxability] to equal "Taxable" or contain the word taxable in the field?

thummasantosh
5 - Atom

It worked. Thank you! 🙂

thummasantosh
5 - Atom

It worked. Thank you!

Labels