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,
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 10 | |
| 9 | |
| 8 | |
| 7 |