Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

14 day rolling sum

Apologies in advance if this is confusing:   I have 2 dates: Notification date and Epi Date   What im trying to do is get a rolling 14 day sum of each. I have tried this but it keeps giving me nu...
  • mahoneypat's avatar
    5 years ago

    Here is one of the measure expressions to be used in a Table visual with your Event Date column.  You can adapt it to also work with your Epi Date column too.

     

    Prev 14 Day Event Count= var thisdate = MIN(Sheet1[Event Date])
    return CALCULATE(COUNT(Sheet1[Epi Date]), FILTER(ALL(Sheet1[Event Date]), Sheet1[Event Date]<=thisdate && Sheet1[Event Date]>=thisdate-13))

     

    Regards,

    Pat