Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 July 2025 Power BI update to learn about new features.
User | Count |
---|---|
75 | |
72 | |
39 | |
29 | |
27 |
User | Count |
---|---|
97 | |
97 | |
58 | |
45 | |
42 |