Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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"})
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
83 | |
70 | |
61 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |