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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
yaman123
Post Partisan
Post Partisan

Incorrect Row Subtotals

Hi all, 

 

I have an issue with a report i have created. The row subtotals do not sum correctly.  The Quantity field should show a total of 516 but instead it is showing as 512 - see below. I am using the standard matrix visual and no measures. I have added a column to the values box and done a distinct count on the column. 

 

Any help would be appreciated! 

 

Thanks

 

Capture.JPG

5 REPLIES 5
Anonymous
Not applicable

Hi @yaman123 ,

 

Did you pivot the data in Power Query, or did you use custom visual?

For the issue of subtotals, we usually use HASONEVALUE to solve.

Try like

Measure=IF(HASONEVALUE('Table'[Days to Match Group]), RESULT1, RESULT2)
 
Based on my test, the subtotals in the matrix is correct. 
Screenshot 2021-03-09 140718.png
 
 
 

Best Regards,

Stephen Tao

 

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

 

Hi, 

 

It is the standard matrix visual i am using. I am doing a distinct count of the invoice no to show me the quantity. The total should be 516 but it is showing as 512 for 0-1 days total quantity. 

Anonymous
Not applicable

Hi @yaman123 ,

 

Can you provide me with more detailed information about your matrix and problem, or share your pbix file from Onedrive for Business with me?

 

You can download my test file and compare it with yours.

 

Best Regards,

Stephen Tao

 

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

VijayP
Super User
Super User

@yaman123 

Sample Data allows to give a good solution




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Hi, 

 

So count of invoice no is the quantity field which is not summing correctly 

 

Capture.JPG

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.