ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. 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.
解決済み

Multiple if contains elseif troupleshoot

thummasantosh
アトム

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件の返信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
クエーサー

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

thummasantosh
アトム

It worked. Thank you! 🙂

thummasantosh
アトム

It worked. Thank you!

ラベル
トップのソリューション投稿者