Alteryx Designer Desktop Discussions

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

IF condition with AND,OR

RanjanKT
8 - Asteroid

HI ALL,

 

Can some one help me with this formula.

 

The formula is not picking the "Oceania-NZ Div Bus". Even if its not =""Oceania-NZ Div Bus" the formula is getting calculated.

 

if ([Market Segment]="Oceania-NZ Div Bus" AND ([Oceania Industry]="Advanced Manufacturing" OR [Oceania Industry]="Mining & Metals" OR [Oceania Industry]="Oil & Gas" OR [Oceania Industry]= "Power & Utilities" OR [Oceania Industry]="Real Estate, Hospitality & Construction")) then "NZ BEaR" elseif ([Market Segment]="Oceania-NZ Div Bus" AND ([Oceania Industry]= "CPR" OR [Oceania Industry]="Private Equity" OR [Oceania Industry]="Private Households" OR [Oceania Industry]="Professional Firms & Services" OR [Oceania Industry]="Tech, Media, Telcom")) then "NZ Cons." elseif ([Market Segment]="Oceania-NZ Div Bus" AND ([Oceania Industry]= "FSO")) then "NZ FSO" elseif ([Market Segment]="Oceania-NZ Div Bus" && ([Oceania Industry]= "Central Agencies" OR [Oceania Industry]= "Defence" OR [Oceania Industry]="Education" OR [Oceania Industry]="Government & Public Sector" OR [Oceania Industry]="H&LS" OR [Oceania Industry]="Human Services" OR [Oceania Industry]="Transport")) then "NZ GHS" else "NZ TBD"
endif

 

1 REPLY 1
fmvizcaino
17 - Castor
17 - Castor

Hi @RanjanKT ,

 

Would you be able to share some cases where your formula isn't working?

I've tested here and it seems to be working just fine and also there isn't anything wrong in your formula, so maybe there is something wrong with the columns [Market Segment] or [Oceania Industry].

 

Best,

Fernando Vizcaino

Labels