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

Filter a Particular String

ashiques
8 - Asteroid
Hi ,

I want to Filter 'AbC'  From "SB-Fract AbC SERIES 1 RC DS"  in Field2  where Field2 has many rows. I want those value which has 'AbC' in there Field2 value. Important thing is that the Position of 'AbC' is not fixed. It can come as "AbC SB-Fract  SERIES 5 RC DS" or "SB-Fract  SERIES 10 RC AbC DS" or at any position. After filetring 'AbC' next thing i want to Filter is "SB". I try Many Function of String but didnt get any idea.

Thanks in Advance
 
1 REPLY 1
tom_montpool
12 - Quasar
Hi,

Use the FINDSTRING() function -- the Alteryx help on this is quite good. It returns the starting position of the text you are finding or a -1 if the term is not found. It is case sensitive, so in your example in a Filter tool, the syntax would be:
FINDSTRING([Field2],"AbC")
You could also combine them (in a Filter tool) to get both AbC and SB with this syntax:
FINDSTRING([Field2],"AbC")!=-1 && FINDSTRING([Field2],"SB")!=-1

I hope this helps
Labels
Top Solution Authors