Forum Discussion
Anonymous
7 years agoNot applicable
Running Total by Group - Matrix Total
I am having issues with calculating a running total by group (sex) in a matrix. My table is an attendance sheet so I just need to calculate the running total of the number of rows (attendants) for ea...
- 7 years ago
Anonymous ,
Sorry, try thisRunning Total by Sex = CALCULATE( COUNTROWS('tbl1'), FILTER( ALLEXCEPT('tbl1', 'tbl1'[Sex]), 'tbl1'[Date] <= MAX('tbl1'[Date]) ) )Regards,
Mariusz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Mariusz
7 years agoCommunity Champion
Hi Anonymous
Try the below.
Running Total by Sex =
CALCULATE(
COUNTROWS('tbl1'),
FILTER(
ALLEXCEPT('tbl1', 'tbl1'[Sex]),
'tbl1'[Date] <= MAX('tbl1'[Date]) &&
)
)
Regards,
Mariusz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
7 years agoNot applicable
Hi Mariusz ,
That worked! Thanks!
Running Total by Sex =
CALCULATE(
COUNTROWS('tbl1'),
FILTER(
ALLEXCEPT('tbl1', 'tbl1'[Sex]),
'tbl1'[Date] <= MAX('tbl1'[Date])
)
)Anonymous : Thanks for your help. Problem solved...