Forum Discussion

jayanthan's avatar
jayanthan
Helper III
7 years ago
Solved

Cumulative Values by Selected Period

Hi All

 

How can we create Cumulative Value by Selected Year

 

E.g  Based on below given data

when i select year 2018, i should get cumulative value  10,24,45 for months 1,2,3

When i select year 2019 ,i should get cumulative value 40,70,110 for months 1,2,3

 

YearMonthValueCumulative
201811010
201821525
201832045
201914040
201923070
2019340110

 

Regards

Jayanthan

  • jayanthan ,

     

    Create a calculate column as below:

     

    Cumulative = CALCULATE(SUM('Table'[Value]), FILTER('Table', 'Table'[Year] = EARLIER('Table'[Year]) && 'Table'[Month] <= EARLIER('Table'[Month])))

     

    Then you can create a slicer based on year column to filter table visual:

     

     

    Community Support Team _ Jimmy Tao

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

1 Reply

  • v-yuta-msft's avatar
    v-yuta-msft
    Community Support

    jayanthan ,

     

    Create a calculate column as below:

     

    Cumulative = CALCULATE(SUM('Table'[Value]), FILTER('Table', 'Table'[Year] = EARLIER('Table'[Year]) && 'Table'[Month] <= EARLIER('Table'[Month])))

     

    Then you can create a slicer based on year column to filter table visual:

     

     

    Community Support Team _ Jimmy Tao

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.