Forum Discussion
Krish_76
9 years agoFrequent Visitor
Leading Zero Issue
Hello everyone I am having trouble with the Zip codes when it has 0 as the leading. Example : I have data like this in excel NJ 07306 TN 38120 When i imported into Power BI, it is ...
- Anonymous9 years ago
Quick solution is to create a new custom column in DAX with a formula:
FullZip = FORMAT([Zip], "00000")
Where [Zip] is your zip code field name.
ACT
8 years agoFrequent Visitor
I am too...I tried to write it within the Advanced Query Editor rather than creating a new column as well...tried to edit format changes, etc. Can't seem to get it to work. =(
Anonymous
8 years agoNot applicable
This is because its a DAX created column, not a Power Query formula.
EDIT: You beat me to it :P