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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
mmills2018
Helper IV
Helper IV

Subtotals in Matrix

Hello,

 

i have the below matrix in power bi.  all the measures are set up correctly, but for each company (Company A and B), it is summing the % Female and not dividing female headcount by Headcount.  Any ideas why this is happening?  can i not use a matrix?

 

 Female HeadcountHeadcount% Female (female hc /Hc)
Company A351101.576722191
Group 15200.25 (5/12)
Group 26210.285714286
Group 37220.318181818
Group 48230.347826087
Group 59240.375
Company B47454.442424242
Group 610110.909090909
Group 710150.666666667
Group 812101.2
Group 91591.666666667
2 ACCEPTED SOLUTIONS

Why not more simply Female % = [Female Headcount] / [Headcount Measure]?

 

Your SUMX is telling it to add the ratios of the components together for each row in the filtered Sheet1 table.

View solution in original post

that did it!! thanks so much!

View solution in original post

8 REPLIES 8
mmills2018
Helper IV
Helper IV

sorry, one more question, for my measures the 'grand total' is not showing, any reasons why?

Probably because of your ISINSCOPE functions. Those make your measures return blank if they aren't at one of the two levels you've specified.

 

It's not clear to me why those are there at all, especially since you are using the same values for all of the levels you specify.

ahh got it, thanks!!!

AlexisOlson
Super User
Super User

How are each of the measures defined?

below are the measures:
Female Headcount:
SUMX (
FILTER ( Sheet1, Sheet1[Management Level] IN VALUES ( 'Snapshots (Prod)'[Management Level (groups)] ) ),
IF (
ISINSCOPE ( Sheet1[OpCo] ),
(Sheet1[Female Headcount]),
IF (
ISINSCOPE ( Sheet1[Platform]),
(Sheet1[Female Headcount] )
)
))
 
Headcount Measure = SUMX (
FILTER ( Sheet1, Sheet1[Management Level] IN VALUES ( 'Snapshots (Prod)'[Management Level (groups)] ) ),
IF (
ISINSCOPE ( Sheet1[OpCo] ),
(Sheet1[Headcount]),
IF (
ISINSCOPE ( Sheet1[Platform]),
(Sheet1[Headcount])
)
))
 
Female % = SUMX (
FILTER ( Sheet1, Sheet1[Management Level] IN VALUES ( 'Snapshots (Prod)'[Management Level (groups)] ) ),
IF (
ISINSCOPE ( Sheet1[OpCo] ),
(Sheet1[Female Measure]/Sheet1[Headcount Measure]),
IF (
ISINSCOPE ( Sheet1[Platform]),
(Sheet1[Female Measure]/Sheet1[Headcount Measure] )
)
))

Why not more simply Female % = [Female Headcount] / [Headcount Measure]?

 

Your SUMX is telling it to add the ratios of the components together for each row in the filtered Sheet1 table.

that did it!! thanks so much!

mmills2018
Helper IV
Helper IV

sorry, the above in Female % for Group 1 is 5/20 = .25

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors