In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

make 10 digits number

Johmz
8 - Asteroid

HI all,

 

need your help. i have set of loan number. e.g 12345, 456789, 

i need make it 10 digit number by adding zero (0) in front of it... ex. 12345 should be 0000012345 as output.

thanks in advance i'm beginner in alteryx

2 REPLIES 2
apathetichell
20 - Arcturus

first off - those are strings. not numbers. - this is a key point - a string can have leading 0s - a number cannot. you must use a string field.

 

second -:

padleft(tostring([field]),10,"0")

 

 

Johmz
8 - Asteroid

Thanks. Very helpful

Labels
Top Solution Authors