Alteryx Designer Desktop Discussions

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

Formula help with if not equal.

Adam_B
8 - Asteroid

Hello,

 

I am trying to get an output of Supplier Segmentation as 3 Categories, “Preferred”, “Strategic” and “Non Preferred”.  Right now, I have 5 different categories as shown in the screen shot. 

Adam_B_0-1680124121217.png

 

 

My formula is   

If [Supplier Segmentation] != "Preferred" or "Strategic" then "Non Preferred" Else [Supplier Segmentation] Endif

 

My out is

Adam_B_1-1680124121220.png

 

 

What am I doing wrong with that formula?   My output should be 3 Categories, “Preferred”, “Strategic” and “Non Preferred”.

 

Thanks,

Adam

4 REPLIES 4
Luke_C
17 - Castor

Hi @Adam_B 

 

Try this:

If [Supplier Segmentation] != "Preferred" or [Supplier Segmentation] != "Strategic" then "Non Preferred" Else [Supplier Segmentation] Endif

Adam_B
8 - Asteroid

@Luke_C Nope, now I just get Non Preferred

Adam_B_0-1680124654397.png

 

Luke_C
17 - Castor

Sorry try changing the or to an AND

Adam_B
8 - Asteroid

@Luke_C That worked, thank you. 

Labels