Missed the Q4 Fall Release Product Update? Watch the on-demand webinar for more info on the latest in Designer 24.2, Auto Insights Magic Reports, and more!
Free Trial

Alteryx Designer Desktop Discussions

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

IF contains

harithad1
7 - Meteor

Hi, 

 

Need help with the expression to be used to get the result column. If check 1 & Check 2 contains "Pass", then the result should be true otherwise false.

 

Check 1Check 2Result
Validation check : PassValidation check : FailFALSE
Validation check : PassValidation check : PassTRUE
Validation check : FailValidation check : PassFALSE
Validation check : FailValidation check : FailFALSE
4 REPLIES 4
PhilipMannering
16 - Nebula
16 - Nebula
endswith([Check 1], 'Pass') and endswith([Check 2], 'Pass')
harithad1
7 - Meteor

@PhilipMannering Thanks for this.

 

But what if the column 1 and 2 are not ending with Pass or Fail but with some other word. Lets say " Validation check : Pass customer". In this case, what expression can be used?

Mathias_Nielsen
9 - Comet

HI @harithad1 ,

 

This will look for "pass" anywhere in the two check columns and only return "TRUE" if it exsists in both columns.

if Contains([Check 1], "pass") and Contains([Check 2], "pass") then "TRUE" else "FALSE" endif

 

Hope this works for you :)

 

harithad1
7 - Meteor

That worked, thank you @Mathias_Nielsen 

Labels
Top Solution Authors