Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
I try to convert a column of number to text, with padding '0' on the left. How do I do?
FOr example:
Number:
90
9
123
I would like to convert it to a text with 6 chars:
"000090"
"000009"
"000123"
Solved! Go to Solution.
@simonxiaoss , You can do that with Power Query/M in Edit Query/Transform Data mode
https://docs.microsoft.com/en-us/powerquery-m/text-padstart
Text.PadStart([colum1], 6, "0")
In DAX
REPT("0",6-len([colum1]) ) &[colum1]
You have create a new column
@simonxiaoss , You can do that with Power Query/M in Edit Query/Transform Data mode
https://docs.microsoft.com/en-us/powerquery-m/text-padstart
Text.PadStart([colum1], 6, "0")
In DAX
REPT("0",6-len([colum1]) ) &[colum1]
You have create a new column
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 37 | |
| 31 | |
| 27 | |
| 27 |