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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
amirghaderi
Helper IV
Helper IV

Incorrect Sum Matrix

How is possible the sum shown in matrix to be incorrect. If I calculate the sum in excel it gives me different number.

the fields are decimal type as well.

The data are columns as well, no measure.

 

Below table from Power Bi and excel manual calc:

amirghaderi_2-1629293290144.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @amirghaderi 

Try to build measures to get Price and H from Table B.

 

Price From B = CALCULATE(SUM(B[Price]),FILTER(B,B[Category] in VALUES(A[Category])))
H From B = CALCULATE(SUM(B[H]),FILTER(B,B[Category] in VALUES(A[Category])))

 

Result:

1.png

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @amirghaderi 

Please check your data model. If you use the same data model in Power BI and Excel, you should get the same result in Total.

I can get correct result in my Power BI Desktop. 

1.png

Result:

1.png

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I found the reason for discrepancy. Although dont know how to fix it.

There is a relationship between table A and B (one  to many), The value in matrix visual is from table B which has a grouping refrence to table A value. There is a value in table B  which does not match in table A ( against one to many relationship). So, even the total get calculated in the bottom sum, cant show that in the matrix. not sure if it is possble to be shown with Blank grouping.

Anonymous
Not applicable

Hi @amirghaderi 

Try to build measures to get Price and H from Table B.

 

Price From B = CALCULATE(SUM(B[Price]),FILTER(B,B[Category] in VALUES(A[Category])))
H From B = CALCULATE(SUM(B[H]),FILTER(B,B[Category] in VALUES(A[Category])))

 

Result:

1.png

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

tex628
Community Champion
Community Champion

Hi @amirghaderi , 

This should not be possible, Can you possibly send the file or recreate the issue in a sample file? 

/ J


Connect on LinkedIn

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.