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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
chipchuck
New Member

Percentage not showing correctly in matrix subtotals.

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?

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

 

Share the link from where i can download your file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
MFelix
Super User
Super User

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:

  1. Column [PMO/FMO] should be the column that you use as row context on your table
  2. In the SUMX you can use the full table instead of the ALL syntax however in terms of performance it's better to only use the data columns you are using on your table.

 

If you need additional help please share some data sample and expected output.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Says 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]))

chipchuck
New Member

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?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors