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.
SOLVED

Filtering out only numbers

anonymous008_G
8 - Asteroid

Hi All,

 

I want to filter out only number string from below column. characters should get eliminated. How i can write custom formula to get this result. Can someone please help me here

Input
111
222
333
444
555
666
777
888
999
 
Bansi
Ashish
I love my country
5 REPLIES 5
alexnajm
18 - Pollux
18 - Pollux

Maybe RegEx_Match([Input],"\d+") ?

anonymous008_G
8 - Asteroid

Thanks this is solved. Can you please explain what "\d+" does in the folrmula?

Bren_Spill2
12 - Quasar
12 - Quasar

@anonymous008_G - another approach not using regex. Using cleanse tool to remove numbers, then filter out empty rows.

alexnajm
18 - Pollux
18 - Pollux

"\d+" is Regex syntax for "one or more digit characters" - by using the Regex Match function, I am basically saying there has to ONLY be digit characters. Everything else therefore should be filtered out!

malteryx1
6 - Meteoroid

You can try this using data Cleansing tool and Filter Tool. Attaching the screenshot for your reference.Screenshot (6).png

 

Labels
Top Solution Authors