Forum Discussion

mauko's avatar
mauko
Regular Visitor
5 years ago
Solved

Cumulative sum even accross filtered data

We would like to analyze employee overtime with cumulative sum which would take into account all data even if they are filtered out by a slicer.  What I mean is that if an employee registers worktime...
  • MFelix's avatar
    5 years ago

    Hi mauko 

     

    You need to use a measure and use CALCULATE and ALL to get the final result. something similar to:

    Total Hours = CALCULATE (SUM(Table[Hours]), FILTER (ALL(Table[Date]),Table[Date] <= MAX (Table[Date]) )