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

Alteryx Designer Desktop Discussions

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

fill up 2 digit entries to 4 digit ( 22 to 0022)

chvizda
8 - Asteroid

Hi all

 

I have a fiels which has entries like

 

1488

323

2

1499

..

 

How is it possible to fil up the 1 to 3 digit entries with 0 in front to get a 4 digit entry with  leading zeros ?

 

1488

0323

0002

1499

 

Many thanks in advance

 

Steffen

 

2 REPLIES 2
neilgallen
12 - Quasar
You would want a formula tool with

Padleft([field],4,”0”)
Thableaus
17 - Castor
17 - Castor

Hi @chvizda 

 

@neilgallen is right. I just would add up that you need to convert your numeric field to a String type before using the formula.

 

Cheers,

Labels
Top Solution Authors