Alteryx Designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
ALTER.NEXT:

Join us on Dec 2 for a half-day virtual analytics + data science event!
US & CA customers only

SAVE YOUR SPOT
It's the most wonderful time of the year - Santalytics 2020 is here! This year, Santa's workshop needs the help of the Alteryx Community to help get back on track, so head over to the Group Hub for all the info to get started!
SOLVED

Filter line which contain 10 digits

Highlighted
6 - Meteoroid

Hello - I have a data set where I am looking to filter out all line which are not 10 digits.

 

See example data attached.

 

After the filter I want to be left only with those lines which contained exactly 10 digits in the 'code' column, removed any which are above or below 10.

 

Thanks

Highlighted
Alteryx Certified Partner
Alteryx Certified Partner

in the filter tool you can use the expression,

 

 

 

 

regex_match(tostring(Code), '\d{10}')

 

 

 

 

Hope this helps! 

Highlighted
17 - Castor

Hi @tom05 

 

Here is a workflow for the task.

Filter

Length(ToString([Code]))>=10

Workflow:

atcodedog05_0-1605873615773.png

 

Hope this helps 🙂


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

Highlighted
17 - Castor

Happy to help 🙂 @tom05 

 

Cheers and Happy Analyzing 😀

 

Feel free to reach out if you face any other issues 🙂

Highlighted
Alteryx Certified Partner
Alteryx Certified Partner

@atcodedog05 solution is better. I don't know why I always turn to Regex, it's a disease.

Labels