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

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.

Reply
nh27
Helper III
Helper III

CSV File not importing correctly

We are trying to import a CSV file into PowerBI with columns that contain financial figures (both positive and negative decimal numbers). However when we try to change this column to a Decimal or Fixed Decimal Number type we get errors saying it is unable to convert the negative values.

 

Have attached some screenshots of one line that you can see in the CSV file as a negative but in Power BI without changing anything it's formatted it with a gap.

 

Any ideas why it is doing this and how to get around this?

 

Thanks in advance1.PNG2.PNG

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Weird indeed.  before trying to convert the column do a "Replace Values"  and replace space " "  with an empty string. ""

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

Weird indeed.  before trying to convert the column do a "Replace Values"  and replace space " "  with an empty string. ""

Thanks for the suggestion, this done the trick!

Still baffled why it's doing that but hey ho.

Thanks once again

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.