Forum Discussion

toniacheung's avatar
toniacheung
Frequent Visitor
7 years ago
Solved

help with drill through with cumulative total

  I have a visual that shows the number of incidents over the year, with a line showing the accumulation for the year.  When I drill through to show the data by week (or month, or year), however, ...
  • toniacheung's avatar
    toniacheung
    7 years ago

    Okay, I got it to work by filtering other years and then using this:

     
    CALCULATE(
        COUNTA('Table 1'[Date of Incident]),
        FILTER(
            ALL('Table 1'),
            ISONORAFTER('Table 1'[Date of Incident], MAX('Table 1'[Date of Incident]), DESC)
        )
    )