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

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

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels