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

Define number of characters

max_hfr
8 - Asteroid

Hi guys,

 

I have a column which contains some id (only numbers). the number of characters can vary eg: 012345 or 01234 or 1234. 

 

I order to upload my output to a server i need this column's length to have exactly 11 characters.

 

So i Would need  012345 to become 00000012345,  01234 to become 00000001234,  1234 to become 00000001234

 

 

Any idea?

 

Thanks in advance

1 REPLY 1
DavidP
17 - Castor
17 - Castor

You can use the padleft function. Make sure your column is a string with length of 11 characters.

 

padleft.png

Labels
Top Solution Authors