In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

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
Top Solution Authors