Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
hello i am inporting data from a excel spreadsheet, but for some reason it is removing leading 0's
e.g in the excel file 25 is 025. how can i stop power query removing the 0. for some reason it did not remove the 0 from 011!
Solved! Go to Solution.
Hi @NewbieJono ,
It seems like ITT Column was taken as Number datatype by Power Query, hence 0 were removed from beginning.
When converted to text, the 0s were ignored.
You need to remove the part from M Query where ITT is converted to number datatype.
Weird behaviour with "011" though.
Can you paste the M Query Code here so that we can look into it?
Give a Thumbs Up if this post helped you in any way and Mark This Post as Solution if it solved your query !!! Proud To Be a Super User !!! |
In the Query Options, uncheck "Automatically detect data types..."
--Nate
Hi @NewbieJono ,
It seems like ITT Column was taken as Number datatype by Power Query, hence 0 were removed from beginning.
When converted to text, the 0s were ignored.
You need to remove the part from M Query where ITT is converted to number datatype.
Weird behaviour with "011" though.
Can you paste the M Query Code here so that we can look into it?
Give a Thumbs Up if this post helped you in any way and Mark This Post as Solution if it solved your query !!! Proud To Be a Super User !!! |
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |