ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
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)