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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
ziva5
New Member

Accumulated Performance Calculation

Hello,
i have a precalculated monthly performance table and i want to create a measure that calculate accumulated performance.
accumulated performance shuold be calculated from the date that user choose in slicer parameter to show the monthly performance.
i tried the below Measure to reterive the previus month value, and then use it in new measure to summarize it, but it returns a null value
can anyone help me please
thanks,


Prev Value = CALCULATE ([Return] ,FILTER ( KeyPerformanceMonthly,KeyPerformanceMonthly[Start of Month]=[Prev Month] ))

 

ziva5_0-1673449898939.png

 

5 REPLIES 5
v-jianboli-msft
Community Support
Community Support

Hi @ziva5 ,

 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or if you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.

 

Refer to:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

 

Best Regards,

Jianbo Li

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

v-jianboli-msft
Community Support
Community Support

Hi @ziva5 ,

 

I can't open the sample you provided due to some missing files, but you can try this measure:

Prev Value = CALCULATE ([Return] ,FILTER ( ALL(KeyPerformanceMonthly),KeyPerformanceMonthly[Start of Month]=[Prev Month] ))

 

Best Regards,

Jianbo Li

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

amitchandak
Super User
Super User

@ziva5 ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

refer if window function can help

Power BI Window function Rolling, Cumulative/Running Total, WTD, MTD, QTD, YTD, FYTD: https://youtu.be/nxc_IWl-tTc

 

Running Total/ Cumulative: https://www.youtube.com/watch?v=h2wsO332LUo&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=41

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi, thanks for your reply.

Attached you can find a PBIX example.

It is important to emphasize that in my real case I work with Direct Queries

Sample pbix 

Hi,
I managed to solve the previus issue by changing the measure to the following :
Prev Value = CALCULATE ([Return] ,DATEADD ( KeyPerformanceMonthly[Start of Month],-1,MONTH ))
Now I need your help to calculate the Accumulated Performance
Updated PBIX attached

 

Updated PBIX 

Helpful resources

Announcements
Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.