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

count the number of digits in a code

BillyL14
8 - Asteroid

I have a list of codes, for example 568392728921, 473892, 219372178, 478273842374 etc.

I want to filter out codes that have less than 10 digits, is there a way to do that? 

Thanks

2 REPLIES 2
PhilipMannering
16 - Nebula
16 - Nebula

Yes! You can use the filter tool with the expression

 

 

length([Code]) >= 10

 

 

If your code is an integer then you can use,

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

 

The records you want will flow out the True Anchor. 

 

Hope this helps,

Philip 

BillyL14
8 - Asteroid

thanks!

Labels
Top Solution Authors