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! Learn more

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
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!

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.