Forum Discussion
Cannot convert a negative text to decimal
- 9 years ago
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.
As I tested, PowerBI can certainly convert the text "negative numbers" into a negative number, so there's something else going on here.
I import the data into Power BI as following screenshot.
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
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.
- rizwan_ahmed8 years agoRegular Visitor
Thanks arify,
it worked for me as well.
Kind Regards