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 Cloud Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Cloud.
SOLVED

How do I prepend 0 to zipcodes that the leading 0 has been dropped off?

 
1 REPLY 1
Conner_Tri
Alteryx Alumni (Retired)

I asked a really similar question yesterday and got a great answer from David. Here's the thread: https://trifacta.force.com/Customer/s/question/0D51L00004lcuOjSAI/can-i-add-a-prefix-to-data-in-a-column

 

If you tweak the formula described by David, you can surround the "merge" function in an "if" statement. So your formula would be something like: if(length(zipcode)<5, merge(['0', zipcode]), zipcode)