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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.