In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start 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