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

General Discussions

Discuss any topics that are not product-specific here.

Parsing out digits

lbolin
8 - Asteroid

I am wanting to check and see if the digit i have is 5 digits if it is longer than 5 digits I want to cut off the extra digits. 

Example:

544963 -----> 544963

928670000 -------> 92867

928675542 -------> 92867

72143 ------> 72143

 

 

 

 

 

 

 

3 REPLIES 3
ShankerV
17 - Castor

Hi @lbolin 

 

Please find the expected output.

 

tonumber(Left(tostring([Field1]),5))

 

ShankerV_0-1675712197774.png

 

ShankerV
17 - Castor

Hi @lbolin 

 

One more way to do this.

 

ShankerV_0-1675712533534.png

 

Many thanks

Shanker V

 

binu_acs
21 - Polaris

@lbolin One way of doing this

 

binuacs_0-1675879887393.png

IIF(Length(toString([Digits])) >5 , toNumber(Left(toString([Digits]),5)), [Digits])
Labels
Top Solution Authors