Alteryx Designer Desktop Discussions

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

Need Multiple IF AND Formula Help

cpbrehmer
7 - Meteor

I am trying to use a Formula to find values in two columns and return different results based on those values. Is that possible and can someone assist? I have the first IF AND working but don't know how to add additional values.

 

Ex - 

 

IF Contains([Field1],"Value1") && Contains([Field2],"ValueX")

THEN .10

IF Contains([Field1],"Value2") && Contains([Field2],"ValueY")

THEN .20

 

1 REPLY 1
MarqueeCrew
20 - Arcturus
20 - Arcturus

IF
Contains([field1],"Value1") && Contains([field2],"ValueX")
THEN '.10'
ELSEIF
Contains([field1],"Value2") && Contains([field2],"ValueY")
THEN '.10'
ELSE
'.99'
ENDIF

 

That should do it for you :)

 

Happy Easter,

 

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Labels