cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
BobWong1
Frequent Visitor

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors