Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.
Good Morning
Is there a way to add leading zeros to an existing field to make it a five digit number but keeping it as type number.
All of the solutions i have seen convert it to a text field but i need it to remain as a number.
For example
1234 becomes 01234
Thank you
Solved! Go to Solution.
In the power query editor, choose the custom column from add column tab
In the custom column formula, write the mentioned formula
Text.PadStart(Text.From([YourExistingField]), 5, "0")
It will not change the type to text.
In the power query editor, choose the custom column from add column tab
In the custom column formula, write the mentioned formula
Text.PadStart(Text.From([YourExistingField]), 5, "0")
It will not change the type to text.
Refer to this video
https://www.youtube.com/watch?v=PLlqZCS26rU&ab_channel=DhruvinShah
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
76 | |
73 | |
71 | |
49 | |
41 |
User | Count |
---|---|
54 | |
48 | |
33 | |
32 | |
28 |