ZIP code leading zeros being removed in dataset

I have a dataset and one of the columns is ZIP codes. The leading zeros are being removed when uploaded to DOMO. Any way to change the column's formatting or to prevent the zeros from being truncated?

Best Answer

  • MarkSnodgrass
    MarkSnodgrass Portland, Oregon 🥷
    Answer ✓

    If you are using Domo Workbench you can set the column type to string on the schema tab. If it is coming from somewhere else, you can add the zero back in Magic ETL by using a formula tile and the LPAD function like this:

    LPAD(zipfield,5,'0')
    


    **Check out my Domo Tips & Tricks Videos

    **Make sure to <3 any users posts that helped you.
    **Please mark as accepted the ones who solved your issue.