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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
JustinDoh1
Post Prodigy
Post Prodigy

How to display the same cumulative value on one month?

Hello,

I am trying to display same cumulative value of one month by selecting one month from a filter.

 

I have attached my Pbix file.

JustinDoh1_0-1646335824676.png

 

As illustrated, currently, cumulative value of March 2022 is 35 M.

But, when I select only one month from the Date Range slicer, I get different amount (11.4 M):

JustinDoh1_1-1646335923194.png

I think I might have to fix the measure for CumSales, and I need your help.

CumSales =
      CALCULATE(
                       SUM(Revenue[Amount]),
                               filter(allselected('Calendar'),
                               'Calendar'[Date] <=max('Calendar'[Date])
                             )
                        )
 
Thanks.
 
1 ACCEPTED SOLUTION
Whitewater100
Solution Sage
Solution Sage

Hi:

This should work! I jsut tested. Using ALL is good when dates are involved.

CumSales 2 = CALCULATE(SUM(Revenue[Amount]),filter(all('Calendar'),'Calendar'[Date] <=max('Calendar'[Date])))

View solution in original post

2 REPLIES 2
Whitewater100
Solution Sage
Solution Sage

Hi:

This should work! I jsut tested. Using ALL is good when dates are involved.

CumSales 2 = CALCULATE(SUM(Revenue[Amount]),filter(all('Calendar'),'Calendar'[Date] <=max('Calendar'[Date])))

I also makred your Calendar as Date Table.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors