community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
#SANTALYTICS

The highly anticipated Alteryx Community tradition is back! We hope you'll join us!

Learn More
SOLVED

If Contrains Expression help

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

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

Highlighted
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

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