Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I am trying to create a Matrix
The ROWS pull from a column with two values (PMO and FMO)
The COLS pull from a column with three values (Add, Modify, and Delete)
The VALUES are three measures (Total Count, Passed, and Failed)
I have a measure called %Passed
% Passed = Detail[AUTOMATED]/CALCULATE([Order_cnt],ALLEXCEPT(Detail,Detail[FMO_PMO],Detail[PROGRAM NAME]))
And this calculates the % Passed inside where the row and column meets, but in the subtotals the calculation is greater than 100%.
Any advice on how to make it work in both values and subtotals?
Hi,
Share the link from where i can download your file.
Hi @chipchuck,
The measures are based on context so it take into account the slicers / filters or values in rows / columns to make the calculation so when you make a calculation and add it to the matrix it can give you different results since the context change.
When you use allexcept the filters are removed except the one on the column so when you look at the totals the context is different.
I'm assuming that your several values will add up to the total row correct so at max you will get 100%.
You need to do something like this:
% Passed Subtotals = IF ( HASONEVALUE ( Table[PMO/FMO] ); [%Passed]; SUMX ( ALL ( Table[Colum1, Table[Colum2] ); [% Passed] ) )
Two notes:
If you need additional help please share some data sample and expected output.
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsSays a circular dependency was detected.
% Auto = IF(HASONEVALUE(Detail[FMO_PMO]),[%Automated],SUMX(ALL(Detail[FMO_PMO],Detail[PROGRAM NAME],Detail[AUTOMATED],Detail[ORDER NUM]),[%Automated]))
I am trying to create a Matrix
The ROWS pull from a column with two values (PMO and FMO)
The COLS pull from a column with three values (Add, Modify, and Delete)
The VALUES are three measures (Total Count, Passed, and Failed)
I have a measure called %Passed
% Passed = Detail[AUTOMATED]/CALCULATE([Order_cnt],ALLEXCEPT(Detail,Detail[FMO_PMO],Detail[PROGRAM NAME]))
And this calculates the % Passed inside where the row and column meets, but in the subtotals the calculation is greater than 100%.
Any advice on how to make it work in both values and subtotals?
User | Count |
---|---|
98 | |
75 | |
69 | |
49 | |
26 |