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,
Wondered if anybody could help. I need to add spaces between all characters in strings in a column called [Names]
i.e the string 'Simon Jones', would become 'S i m o n J o n e s'
Not sure whether I am missing a simple solution. Any assistance would be much appreciated.
Thanks,
Solved! Go to Solution.
Hi @C-Duff84 ,
you could add a column like so:
Text.Combine(List.Transform(Text.ToList([Names]), (l)=> l & " "), "")
Please also check the file enclosed.
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
= Table.AddColumn(Source, "Spaced", each Text.Combine(Text.ToList([Name]), " "))
| Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
= Table.AddColumn(Source, "Spaced", each Text.Combine(Text.ToList([Name]), " "))
| Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Thanks! Appreciate your support
Hi @C-Duff84 ,
you could add a column like so:
Text.Combine(List.Transform(Text.ToList([Names]), (l)=> l & " "), "")
Please also check the file enclosed.
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Thanks ImkeF! Appreciate your response
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 9 | |
| 8 | |
| 7 | |
| 7 |