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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Responsive Resident
Responsive Resident

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
Responsive Resident
Responsive Resident

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors