We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

mutliple condition

Johmz
8 - Asteroid

I need help to formula

FIRST NAMESTATUS
name:origCorrect
nick:orig | name:orig | last1:origCorrect
last2:orig | name:origCorrect
nick:orig | last1:husband | name:origIncorrect

 

 

Scenario 1: if FIRST NAME column contains name:orig then correct else incorrect

 

Scenarion 2: if FIRST NAME column contains name:orig and contains last*:orig then correct else incorrect . "*" represent any number after last

 

 

Thanks in advance

5 REPLIES 5
alexnajm
18 - Pollux
18 - Pollux

* doesn't work as a wildcard with Contains - you'll have to split it up into Contains last AND contains :orig

 

Or you'll have to create a Regex_Match to replace it

flying008
15 - Aurora

Hi, @Johmz 

 

FYI.

Spoiler
IIF([FIRST NAME] = 'name:orig' || (Contains([FIRST NAME], 'name:orig') && REGEX_CountMatches([FIRST NAME], 'last\d:orig(?:\s?\||$)')), 'Correct', 'Incorrect')

录制_2025_06_05_08_17_43_496.gif

 

 

Johmz
8 - Asteroid

can i also use Regex_MATCH if FIRST NAME contains but not equal to last*:orig?

flying008
15 - Aurora

Hi, @Johmz 

 

Yep, you can do it with Regex_Match function.

Qiu
21 - Polaris
21 - Polaris

@Johmz 
I feel that we better split the "First Name" column with delimeter "|" then check with your condition.

0605-Johmz.png

Labels
Top Solution Authors