Forum Discussion

Kolumam's avatar
Kolumam
Icon for Post Prodigy rankPost Prodigy
6 years ago
Solved

Cumulative total based on the selected month

I have a date table and a Meter table. There exists a one to many relationship between them with a cross filter on both sides. I am trying to calculate a cumulative total of a column in the meter tab...
  • v-lid-msft's avatar
    v-lid-msft
    6 years ago

    Hi Kolumam ,

     

    First of all, we can create a spreated calculated table as the slicer, 

     

    SlicerTable = DISTINCT('Table'[Month])

     

    Then we can use a measure in visual filter to meet your requirement:

     

    Cumulative Size = CALCULATE(SUM('Table'[Size]), FILTER(ALLSELECTED('Table'),[Month]<=SELECTEDVALUE('Table'[Month])))

     

     


    Best regards,