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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi,
In case there are six spaces in the beginning of my column in PowerQuery, I would like to fill them up with the same six characters as in the row above. Below is an example:
What would I have to do in PowerQuery to make this happen?
Thank you for your help/feedback.
Solved! Go to Solution.
Hi @Anonymous
if Text.Contains([Column1] , "-") then Text.BeforeDelimiter([Column1], " -") else null
if Text.Contains([Column1] , "-") then [Column1] else [Custom] & " - " & [Column1]
Hope this helps
Joe
If you found my answer helpful and it solved your issue, please accept as solution
Proud to be a Super User! | |
Date tables help! Learn more
Hi @Anonymous
if Text.Contains([Column1] , "-") then Text.BeforeDelimiter([Column1], " -") else null
if Text.Contains([Column1] , "-") then [Column1] else [Custom] & " - " & [Column1]
Hope this helps
Joe
If you found my answer helpful and it solved your issue, please accept as solution
Proud to be a Super User! | |
Date tables help! Learn more
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.