Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Contains[Field] that has exactly 4 characters

wonka1234
10 - Fireball

Hi,

 

I have this ina  multi row formula - 

 

IF Contains([Field1], "A") THEN [Field1] ELSE [Row-1:Field1] ENDIF

 

I want to add an OR contains for strings with 4 digits/chracters.

 

Thanks.

1 REPLY 1
cjaneczko
13 - Pulsar

Try this. 

 

IF Contains([Field1], "A") or REGEX_Match([Field1], '.{4}') THEN [Field1] ELSE [Row-1:Field1] ENDIF
Labels
Top Solution Authors