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 dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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 July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
60 | |
60 | |
54 | |
38 | |
27 |
User | Count |
---|---|
85 | |
60 | |
45 | |
41 | |
39 |