Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
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
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.
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
12 | |
11 | |
7 | |
6 |