ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more 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