Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Removing a strange space between numbers

Hi,

 

there is a strange space between my data which I have no clue how to remove: 

AndrejBI_0-1602926239395.png

I have tried several methods, yet none of them worked.

 

It causes that my data is defined as text, even though it's clearly numbers. 

 

Here is the file for those who would like to get their head around it: 

https://we.tl/t-dTAhpHLJZR

 

EDIT: LEFT and RIGHT dax funcitons is not an option as data is dynamic, hence the numbers will be left 2 for some numbers and left 1 for the others. 

 

1 ACCEPTED SOLUTION
MattAllington
Community Champion
Community Champion

Have you tried clean in power query?  Transform menu. 

if that doesn't work, click one of the cells in Power Query so you see the text at the bottom of the screen. Copy the space character to the clipboard, then transform, replace values and paste the character. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

View solution in original post

3 REPLIES 3
MattAllington
Community Champion
Community Champion

Have you tried clean in power query?  Transform menu. 

if that doesn't work, click one of the cells in Power Query so you see the text at the bottom of the screen. Copy the space character to the clipboard, then transform, replace values and paste the character. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Special space character between groups of numbers is #(00A0)

The code to remove those spaces and have clean numbers castable to int64 is:

Table.ReplaceValue(#"Previous step","#(00A0)","",Replacer.ReplaceText,{"Column 1"})

 

Anonymous
Not applicable

Many thanks @MattAllington,

 

your solution worked splendidly.

 

Heads-up: remember to "replace using special characters" 

AndrejBI_0-1602934075186.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.