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
BobKoenen
Helper IV
Helper IV

Get cumulative total of month before min selected months

Hi All


I am creating a Matrix where in the first column the value of a measure needs to show the cumulative total of all months before the minimal selected month. I could select multiple following months
So if I would select Jan, Feb, March. This column would give me the **bleep** total from December
For April May June this column would give me the **bleep** total from March

I have a created cumulative total measure

Voorz **bleep** =
CALCULATE( [Mutatie voorziening];
    FILTER( ALL ('Calendar');
'Calendar'[Date] <= MAX('Calendar'[Date] )))

And a measure which gives me the cumulatieve total upon last month. 
voorziening **bleep** begin periode = CALCULATE([Voorz **bleep**];DATEADD('Calendar'[Date];-1;MONTH))
 
This works fine if I only select one month in the date slycer. But if I would select multiple months it goes bananas. 

I think it is because it takes the -1 from the max month. And I would like to take the -1 from the min month selected. 

can you Help me?
1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

Difficult to say, change your MAX to MIN?

 

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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.