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
BobWong1
Helper I
Helper I

Power BI got a very serious issue in computation column total??

I created a simple table visual, and I noticed the sum add-up does not tally. I used a calculator to calculate the result is $8.15. The table total value $8.13 is incorrect. It's a 2₵ difference that created serious confusion?

Each row of value checked on the data view is correct.

BobWong1_0-1683737420341.png

Is it a Power BI issue? Or I'm over-looked something?

 

2 ACCEPTED SOLUTIONS
rsbin
Super User
Super User

@BobWong1 ,

Yes, you are overlooking a rounding issue.  I surmise you are dividing Fare by 20 to get Levy Cost.  If you expand your display to 3 decimal places then the total is correct.

16.9 20 0.845
11.7 20 0.585
25.2 20 1.26
18.6 20 0.93
12 20 0.6
17.7 20 0.885
33.6 20 1.68
26.9 20 1.345
     
    8.13

Trust this helps!

Regards,

View solution in original post

Result from Excel Sheet:

BobWong1_0-1683783019016.png

How to resolve this issue?

View solution in original post

5 REPLIES 5
halfglassdarkly
Resolver IV
Resolver IV

Technically the PowerBI total is more accurate than the excel total for the reason Rsbin outlined, however if it's important to you that they match you can use the ROUND() function to round your Levy Cost to two decimal places. That way the actual stored value, not just the display format will be rounded and your figures should match with excel.

halfglassdarkly
Resolver IV
Resolver IV

Remember the total isn't actually the sum of what is displayed above, it is the sum of [Levy Cost] when the context from [Date], [#Job], [TimeStart], [Fare] is removed. I.e the total will be subject to its own rounding, rather than summing the rounded values for each row above.

rsbin
Super User
Super User

@BobWong1 ,

Yes, you are overlooking a rounding issue.  I surmise you are dividing Fare by 20 to get Levy Cost.  If you expand your display to 3 decimal places then the total is correct.

16.9 20 0.845
11.7 20 0.585
25.2 20 1.26
18.6 20 0.93
12 20 0.6
17.7 20 0.885
33.6 20 1.68
26.9 20 1.345
     
    8.13

Trust this helps!

Regards,

Result from Excel Sheet:

BobWong1_0-1683783019016.png

How to resolve this issue?

Dear rsbin,

Guess you misunderstood my question.

If you put the red-box values into Excel worksheet, then the sum is $8.15

So there is a different of 2₵. Can you explain what is causing the issue (rounding-up/down)?

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.