Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jayanthan
Helper III
Helper III

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

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
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])))

 

1.PNG

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

2.PNG 

 

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.

View solution in original post

1 REPLY 1
v-yuta-msft
Community Support
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])))

 

1.PNG

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

2.PNG 

 

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.