Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
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