Hello,
First post so hopefully this makes sense! I have some very weird zip code data and I am trying to normalize it.
The data varies in length so I am trying to do it in multiple steps.
I want to trim everything to 5 digits and if it is shorter than 5 I want to add leading 0's.
TONUMBER(LEFT(TOSTRING([Service Zip Code]),5)) #trims to 5 spaces
PadLeft(tostring([Service Zip Code]),5,"0") #tried and it throws an error saying that it needs to be a number
ToNumber(PadLeft(tostring([Service Zip Code]),5,"0")) #works but doesn't add 0's to front because it is a number.
Any help modifying this would be much appreciated. Thank you!