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

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