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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
pluke
New Member

Subtotals in matrix visual are not right with measure using data from multiple tables

Hi all,

 

I would like to get some help on an issue that I have with a matrix visual and a therein displayed measure. Due to confidential information, I cannot display sample data. However, the problem is like this:

 

I created a measure that at first filters two quantities from two different tables for two points in time. Afterwards I calculate the delta between these two quantities and multiply the result with a factor, that is stored in antother table. Finally, I use this measure in a matrix visual, in which I display the calculated values of this measure for different sub-groups.

 

When I activate the calculation of sub-totals for these sub-groups, the sub-totals for the measure do not add up the values of the underlying sub-groups but applys the measure on to the sub-totals themselves.

 

I tried two things:

- Create new columns to get the row-wise calculation but that disagrees with the reference to multiple tables

- Assign the measure itself to a new column. This works fine for one measure but with multiple measures I run into circular dependency problems.

 

Do you have any suggestions on how to solve this issue or whether it is possible to display the correct sub-totals with a measure that references multiple tables?

 

Cheers

2 REPLIES 2
Anonymous
Not applicable

HI @pluke,

According to your description, it seems like a common measure total level calculation issue. You can refer to the Greg’s blog to know how to handle this scenario:

Measure Totals, The Final Word  

Regards,

Xiaoxin Sheng

 

TomasAndersson
Solution Sage
Solution Sage

Hi!

It's difficult to give specific tips without more details and data, but in general Power BI does total matrices in a somewhat unintuitive way. Iteration functions, such as SUMX(), can often fix this. You can read more about it here with a few examples: Summing values for the total - SQLBI

I'm guessing you would need to create a measure using SUMX() with the table where you have your sub-groups as a reference table. But it could vary depending on your situation. 

 

Hope it helps.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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