Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Add as many 0s in front to get 8 characters

SylviaK
8 - Asteroid

hi, 

 

I would like to get from old below to new. Not sure how this can be done?

 

OldNew
2300000023
1234500012345
23500000235
7778889977788899
6544000065440

 

Many thanks, 

Sylvia

3 REPLIES 3
atcodedog05
22 - Nova
22 - Nova

Hi @SylviaK 

 

Formula would be 

 

 

PadLeft(ToString([Old]), 8, "0")

 

 

Workflow:

atcodedog05_0-1626091069835.png

 

Hope this helps : )

SylviaK
8 - Asteroid

Many thanks. That works

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @SylviaK 

Labels