Forum Discussion
Stop % from summing in subtotal row
Sorry I just created generic sample data for the files uploaded and thought the column would be obvious - oops clearly not!
It's the TotalShare% column in my sample that is summing in the subtotal row, and I don't want it to. (In my real file the column that I'm having the issue with is a stand alone column like this one and doesn't link to or feed off any other columns, just like in my sample file.)
Thanks!
abloor try this measure
TotalShare% =
IF (
ISFILTERED( Table1[Colour] ),
CALCULATE(SUMX('Table1','Table1'[Share %]))
)
- abloor6 years ago
Helper IV
- abloor6 years ago
Helper IV
Hi parry2k ,
I'm using your solution for a new matrix now, and I have to filter one of the fields so it's 'not blank'. This makes the row subtotals show up again, despite your measure having taken it out as expected before I filtered out the blanks.
Do you think I'd have to factor in this new filtered field into the measure to?
Thanks
- abloor6 years ago
Helper IV
For anyone finding this post in future, I worked it out to included another filter of BLANK.
TotalShare% =
IF (
ISFILTERED( Table1[Colour] ) && [Total Revenue] <> BLANK(),
CALCULATE(SUMX('Table1','Table1'[Share %]))
)