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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Cumulative Monthly Returns

Hello,

 

I'm new to PowerBI and attempting to calculate cumulative monthly returns based on a net return measure. The below Cumulative Net Return % calculation is calculating an accurate cumulative return across all of the dates, but I need it to display each month on a cumulative basis. In this example, I would expect the Cumulative Net Return % to display -17.64% for 1/31/22 instead of -19.96% for both months.

 

Here is the matrix that PowerBi is returning:

paigef_0-1651166784285.png

 

And the current cumulative net return % calculation:

paigef_1-1651166808705.png

 

How can I make the calculation running instead of the same for each row? I also need the formula to exclude any months that are not included - it's currently working in that way. The issue now is making it calculate by row.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I was actually able to use this formula succesfully, my date filters were referencing the wrong table. They say offshore but should say onshore.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi , @Anonymous 

How did you get value of these three columns  ? Are they regular columns ? What is the calculation logic for that column you need ?Can you provide a detailed data model for our reference ?

Ailsamsft_0-1651484254908.png

Best Regards,
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Anonymous
Not applicable

I was actually able to use this formula succesfully, my date filters were referencing the wrong table. They say offshore but should say onshore.

Anonymous
Not applicable

The dax measure that worked:

 

Cumulative Net Return % Onshore =
CALCULATE(
PRODUCTX(ALLSELECTED('COMBINED ONSHORE'[End Date]), (1+'DAX MEASURES'[Net Return % Onshore]))-1,
FILTER(
ALLSELECTED('COMBINED onsHORE'[End Date]), 'COMBINED OnSHORE'[End Date]<=MAX('COMBINED ONSHORE'[End Date])
)
)

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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