March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Have on sharepoint this excel file:
As you see the config has a leading zero. And that is what I want.
I did this with custom formatting in excel not with adding a ' in front of it.
But when I import it in power bi :
Gone is the leading zero.
Is there a way to get the leading zero back in the original column?
Or will I have to make a measure or calculated column for that?
Solved! Go to Solution.
Thanks both but I found the way to fix this in Power BI.
So formatted it as a whole number and in the model view you can go to formatting in the properties pane.
Chose your field.
Set format to custom and for me only had to format it like 00
All good now 😄
Thanks both but I found the way to fix this in Power BI.
So formatted it as a whole number and in the model view you can go to formatting in the properties pane.
Chose your field.
Set format to custom and for me only had to format it like 00
All good now 😄
You can try to format the column and add a prefix ("0"). The type will be changed to text
Try to format the config column as TEXT in Excel. After loaded to Power Query, check if the column is converted to number in the step named "Changed Type". You can delete the steps named "Changed Type" added automatically.
@FreemanZ when I format in excel as Text I again lose the leading zero already in excel.
Will I then get it back in power query?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |