Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

If Contrains Expression help

pvara
8 - Asteroid

 

Need some help with the expression if the value 3 is contained in [Ref] then I would like "Y"

Not sure if the commas are causing an issue.

 

 

 

2019-10-24 12_29_18-Alteryx Designer x64 - New Workflow4_.png

3 REPLIES 3
patrick_digan
17 - Castor
17 - Castor

@pvara try switching the positions of Ref and Ref1 in your formula. It's very confusing.

ArnavS
Alteryx
Alteryx

Hi pvara,

 

Instead of using the Contains() Formula, I would try with the In() Formula. 

For example: IF [Ref1] IN ([Ref]) THEN "Y" ELSE "N" ENDIF

Lets give this a try and see what happens. 

 

Arnav

Alteryx

bpatel
Alteryx
Alteryx

hi @pvara ,

 

in your formula your variables are in the wrong place. Ref should be first then Ref1

 

if Contains([ref], [ref1]) then "y" else "n" endif

 

 

bpatel_0-1571949196987.png

 

Hope this helps!

Labels