Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi
I have a list of ID numbers and some of them are missing a leading zero, the ID number should be 8 digits long the IDs that need a leading zero are only 7 digits long. How do I add a leading zero to just the 7 digit IDs in the query editor?
thanks in advance
Solved! Go to Solution.
Hi @WJ876400 ,
Has your problem been solved by @amitchandak 's solution? If yes, please consider accept it as the solution to help the other members find it more quickly.
Best Regards,
Community Support Team _ kalyj
@WJ876400 , In power query
Text.PadStart(Text.From([Colum]),8,"0")
Text.PadStart([Colum],8,"0")
DAX
format([Column], "00000000")
https://www.fourmoo.com/2015/03/25/power-query-adding-leading-zero-to-number-eg-month-number/
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 136 | |
| 102 | |
| 68 | |
| 66 | |
| 58 |