Forum Discussion
Showing the zero with two digit postcode
- 3 years ago
Hi MZCLN,
Can you please try the following in Power Query:
1. Make sure that the Zip Code COlumn is text
2. Add a column with the following formula:
if Text.Length([ZIP COdes]) = 1 then "0" & [ZIP COdes] else [ZIP COdes]
3. Result:
Please now use the new column for your visual.
Best regards
Michael
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your kudos.
Hi, MZCLN ;
I tested it, and in excel show:
Then in desktop show:
So we could tranform data and in power query . delete last step-change type
the final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, thanks for your help. Could you show me which format the excel was? Because if I delete the last change type, it won´t change to your format in the power query