Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello All,
I was wondering how do you handle removing of inner spaces in a column which has values like:
USA; CHICAGO
USA: CHICAGO
USA: CHICAGO
In M I did a Text.Split on space and then Text.Combine, but just thinking if that is effective and the best way to handle this situation or not?
Thank You
Solved! Go to Solution.
#"Replaced Value" = Table.ReplaceValue(#"Changed Type"," ","",Replacer.ReplaceText,{"Country"})
Yes, see code below.
Column = SUBSTITUTE ( Table1[Column1], " ", "" )
By the way, you may also use SUBSTITUTE in DAX.
@v-chuncz-msft - will this handle multiple space issues? Like sometimes its a double space, or three spaces or more?
Yes, see code below.
Column = SUBSTITUTE ( Table1[Column1], " ", "" )
#"Replaced Value" = Table.ReplaceValue(#"Changed Type"," ","",Replacer.ReplaceText,{"Country"})
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.