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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
StephenK
Resolver I
Resolver I

Inaccurate Decimal Numbers

Can someone explain this to me?

I have an excel table that i have imported into power query. 

I have a column [Current Score] with datatype decimal number. (See green highlighted column and note the values 1.83333333 and especially the 2.55) 

I apply a split column by first four characters to truncate to two decimals without rounding. Now note the 1.83 and the 2.55 which is now 2.54. 

 

screen1.pngscreen2.png

 

To make it even more confusing, the value in the excel table is 2.55 not 2.549999999999998. Does anyone know why Power Query would be doing this? It creates a serious data integrity problem.

1 ACCEPTED SOLUTION
Jimmy801
Community Champion
Community Champion

Hello @StephenK 

 

I just can confirm you that it's like that. It's really weird. Try to open a ticket.

However there are some workarounds. Transform you raw data (without any changed type) with the round-function and put 10.

Jimmy801_0-1615054716637.png

or you transform it and multiply your data with 1

Jimmy801_1-1615054893308.png

 

In the other workarounds you have to change your Excel. You can save your workbook as CSV-file or format your content as text.

 

If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

View solution in original post

4 REPLIES 4
Jimmy801
Community Champion
Community Champion

Hello @StephenK 

 

I just can confirm you that it's like that. It's really weird. Try to open a ticket.

However there are some workarounds. Transform you raw data (without any changed type) with the round-function and put 10.

Jimmy801_0-1615054716637.png

or you transform it and multiply your data with 1

Jimmy801_1-1615054893308.png

 

In the other workarounds you have to change your Excel. You can save your workbook as CSV-file or format your content as text.

 

If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

@Jimmy801 thanks for the workaround! Seemed to do the trick. Really appreciate it!

 

Still kinda frustrated though--would like to hear from anyone on the Power BI dev team about this. It's concerning to me that queries become innacurate as a result of this bug. One would think that there would not be any data integrity issues between Excel and Power BI given they are both Microsoft products.

 

If we can't count on the platform to at least maintain accurate queries why would we use it...

 

 

Hello @StephenK 

 

I completely agree. I can try to forward this somehow. However I marked my workaround as solution.

 

BR

 

Jimmy

HotChilli
Super User
Super User

Can you show us the Advanced editor code (including the split column) please?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors