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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Alahianambi
New Member

Subtotals showing up 0 in matrix, even though there are values to sum up in them.

We have a matrix with two dimensions ( Level A and Level B) and an associated measure (Revenue). When we put all these together, i.e. Revenue in Values and Level A, Level B in Rows(As Hierarchy - Level A is higher level and Level B is lower level) . We are getting values as 0 in Level A (eventhough we have values in Level B to sum up and show). 

 

We tried multiple options and there is a limitation that we can't use DAX. Anyone has faced such an issue?

3 REPLIES 3
Anonymous
Not applicable

Hi  @ekoland ,

You can create another new measure as below base on the measure [Revenue] to get the correct total value and put this new measure to replace the original measure [Revenue] onto the matrix:

Measure = SUMX ( GROUPBY ( 'Table', 'Table'[Level A], 'Table'[Level B] ), [Revenue] )

In addition, you can refer the method in the following links to resolve it.

Why Your Total Is Incorrect In Power BI - The Key DAX Concept To Understand

Dax for Power BI: Fixing Incorrect Measure Totals

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Below is how my matrix looks like. XA1, XA2 and so on are the LEVEL 1 hierarchies. A,B,C and so on are the LEVEL 2 hierarchies. Eventhough there are values in LEVEL 2, they don't sum up properly and display in totals in LEVEL 1. They either display 0 or the lowest value among LEVEL 2 values. Please let me know if you have further queries.

 

Column1Column2

XA10
   A23
   B25
   B10
XA23
   C45
   D3
XA30
   E45
   F0
XA498
   G3434
   H98
Anonymous
Not applicable

Hi @Alahianambi ,

If the matrix displays the values correctly at different levels with only the data you have provided available. Not sure if your matrix has any measure or other settings applied...

Column1Column2

XA1 0
   A 23
   B 25
   B1 0
XA2 3
   C 45
   D 3
XA3 0
   E 45
   F 0
XA4 98
   G 3434
   H 98

yingyinr_0-1652343809207.png

In order to give you a suitable solution quickly, could you please share some raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. Please provide the related formula if the matrix apply any measure... It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Best Regards

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.