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

Dynamic Renaming Data From Fields

sanketkatoch05
8 - Asteroid

Hi, 

I have a column in my data that contains a set of numbers in a certain format/length. I want Alteryx to find the cell which has a maximum no. of characters first, and then using that as a reference, add preceding zero(s) accordingly.

 

For reference : 

INPUT

354

4567
2
456789
77

 

OUTPUT : 

ID

000354

004567
000002
456789
000077
2 REPLIES 2
phottovy
13 - Pulsar
13 - Pulsar

Hi @sanketkatoch05 

 

The attached workflow gives you what are looking for, I believe.

sanketkatoch05
8 - Asteroid

Thank you @phottovy , this is what I was looking for. 

Labels
Top Solution Authors