Forum Discussion

iangilsenan's avatar
iangilsenan
Frequent Visitor
6 years ago
Solved

Count values cumulatively over time

We are using a few Power BI Reports in our high schools and are looking for help with counting values cumulatively over time in a Matrix table in a Power BI report. I’ve provided simplified tables b...
  • iangilsenan's avatar
    iangilsenan
    6 years ago

    Thanks amitchandak.

    I managed to solve it without creating a Dates table and using the following measure:

     

    Cumulative Present =
    CALCULATE (
    COUNTAX ( FILTER ( ATTENDANCE,[Category] = "Present" ), [Category] ),
    FILTER (
    ALL ( ATTENDANCE[MarkDate] ),
    ATTENDANCE[MarkDate] <= MAX ( ATTENDANCE[MarkDate] )
    )
    )