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.
I am guessing it's transforming the column in Power Query when you loaded into PowerBI. Check your applied steps in Power Query and ensure that a transform step wasn't inadvertently added.
In the Power Query are no additional steps, it shows only source, navigation, header put higher and a name change I did. Before I change the format of the 2 digit postcodes to a text format, it is already not showing the 0