The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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