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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
baiju
Frequent Visitor

Cannot convert a negative text to decimal

Hi,

 

I am new to power bi. I have a column which have decimal values. But, the datatype is text. When I tried to convert the datatype to decimal power-bi query editors throws below error.

 

DataFormat.Error: We couldn't convert to Number.
Details:
−0.38

 

(note: It happens to only negative numbers)

 

Please help

1 ACCEPTED SOLUTION

I have a feeling that that "−" character isn't same as "-". As you can see, it's a bit wider. Did you get from Web.Page? Maybe you can do "Right click on columns > Replace Values" and replace "−"s with "-"s.

View solution in original post

5 REPLIES 5
baiju
Frequent Visitor

Hi,

 

I am new to power bi. I have a column which have decimal values. But, the datatype is text. When I tried to convert the datatype to decimal power-bi query editors throws below error.

 

DataFormat.Error: We couldn't convert to Number.
Details:
−0.38

 

(note: It happens to only negative numbers)

 

Please help

@baiju,

As I tested, PowerBI can certainly convert the text "negative numbers" into a negative number, so there's something else going on here.

image001.png

 

I import the data into Power BI as following screenshot.

image002.png

Please check the negative sign in the string if there is actually some kind of Unicode character, or that there's something which looks like a digit in the text but is actually a letter? Would you be able to share your data with us for further analysis?


Best Regards,
Angelia

Thanks Angelia & Arify,

 

The issue is with  "−" charactor. I replaced it with "-" . Now Everything works fine

I have a feeling that that "−" character isn't same as "-". As you can see, it's a bit wider. Did you get from Web.Page? Maybe you can do "Right click on columns > Replace Values" and replace "−"s with "-"s.

Thanks arify,

it worked for me as well.

 

Kind Regards

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors