Quantcast
Channel: Service topics
Viewing all articles
Browse latest Browse all 62159

Matrix - Reset Cumulation

$
0
0

I've been restling with this for a few days now and cant seem to get it right.

 

I am using a dax statment to provide a cummulation figure in a matrix that works.

 

CALCULATE(SUM('Attendance (Table)'[Present]), FILTER( ALL('Academic Year (Table)'), 'Academic Year (Table)'[Week Ending]<= MAX('Academic Year (Table)'[Week Ending])))

 

CEllis_1-1736435874589.png

 

The next step was to  - Check to see
if the Total Marks = Present then continue 

 

CALCULATE(SUM('Attendance (Table)'[Present]),
FILTER(
ALL('Academic Year (Table)'),
'Academic Year (Table)'[Week Ending]<= MAX('Academic Year (Table)'[Week Ending])))


Then to check if they had reached the threshold 

 

if the Cumulation reached 21 then reset the Cumulation to 0

 

Any help greatly appreciated.

 

 

 

 

 

 

 

 

 


Viewing all articles
Browse latest Browse all 62159

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>