The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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"})