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
Syndicate_Admin
Administrator
Administrator

Cumulative values with start and end date

Hello

I would like to achieve the following.

Have two date targeting filters such as these:

apenaranda_0-1669797688824.png

Select year and a final date, and that I will get the accumulated amount for each month of the current year selected.

If I select year 2018 and end date 31/03/2018, it should come out:

January 2018: xxxx (where xxxx is accumulated from 1/1/2016 to 31/01/2018)

February 2018: xxxx (where xxxx is accumulated from 1/1/2016 to 31/02/2018)

March 2018: xxxx (where xxxx is accumulated from 1/1/2016 to 31/03/2018)

Thank you.

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @Syndicate_Admin ;

You could create a measure as follow:

Measure = 
CALCULATE(SUM('Table'[value]),FILTER(ALLSELECTED('Table'),[Date]<=MAX('Table'[Date])))

The final show:

vyalanwumsft_0-1669876532144.png


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

View solution in original post

3 REPLIES 3
v-yalanwu-msft
Community Support
Community Support

Hi, @Syndicate_Admin ;

You could create a measure as follow:

Measure = 
CALCULATE(SUM('Table'[value]),FILTER(ALLSELECTED('Table'),[Date]<=MAX('Table'[Date])))

The final show:

vyalanwumsft_0-1669876532144.png


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

Syndicate_Admin
Administrator
Administrator

Hello

The measure you say I already have but it does not do what I want, it simply makes me the total until the maximum date selected but does not give me results per month.

amitchandak
Super User
Super User

@Syndicate_Admin ,

Cumm Sales =
Var _max =max('Date'[date])
return
CALCULATE(SUM(Sales[Sales Amount]),filter(allselected('Date'),'Date'[date] <= _max))

 

or

 

Cumm Sales =
Var _max =max('Date'[date])

Var _max1 =maxX(allselected('Date') , 'Date'[date])
return
CALCULATE(SUM(Sales[Sales Amount]),filter(all('Date'),'Date'[date] <= _max && 'Date'[date] <= _max1   ))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.

Top Solution Authors