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

Need a total of 6 characters in each row by adding zeros

mcas1
7 - Meteor

I have:

 

10A2O1

10A

10A2

 

What i need:

 

10A201

10A000

10A200

 

Essentially, i need to make sure that there are always 6 characters total in the column, and anywhere that it doesn't add up to six, add a 0 to make it six.

 

Thank you!

2 REPLIES 2
atcodedog05
22 - Nova
22 - Nova

Hi @mcas1 

 

Here is a workflow for the task.

Formula

 

 

PadRight([Field1], 6, "0")

 

 

Output:

atcodedog05_0-1605813547543.png

Workflow:

atcodedog05_0-1605813625340.png

Hope this helps 🙂


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

joshuaburkhow
ACE Emeritus
ACE Emeritus

Hey @mcas1 

 

This is as simple as just using the padright([FieldName],6,"0") function in a formula tool! 

Joshua Burkhow - Alteryx Ace | Global Alteryx Architect @PwC | Blogger @ AlterTricks
Labels