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
Anonymous
Not applicable

Number format when importing from CSV

Hi Community, 

 

I am struggling with crazy formatting of numbers when importing from csv.

What happens is that multiple extra zeros get added at the end of (some) numbers, without an apparent logic (I am sure PBI has one though :)) - so that in the table they even appear with the esponential notation.

 

I read this might be an issue with the .csv itself, any trick or way around ? It does not seem to me that it is fixable in the query editor...

 

Huge Thanks!

1 ACCEPTED SOLUTION

Hi @Anonymous 

maybe you should use local formatting like this:

 

04-11-_2020_12-22-03.png

 

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

As said no, the problem is not the decimal which of course I can simply remove or round. It addes extra zeros (e.g., if I divide a column by 10 or 100 I would get the right number)

Hi @Anonymous 

maybe you should use local formatting like this:

 

04-11-_2020_12-22-03.png

 

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

mahoneypat
Employee
Employee

Please provide example of the data with the issue and what you want it to look like.  It can likely be fixed in the query editor.

Regards,

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

Thanks for the reply.

 

E.g. a number which should look like 4,058,931 becomes 405,893,081.00 

If all the #s end in .00 then you can just convert the column to a whole number data type.  If not .00, you can highlight the column and round it using the button on the transform tab.

Regards,

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


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.