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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
giroldoale
Helper I
Helper I

Create e Cumulative SUM from a specific date to Today's date

Hi,

I would like to build a measure that calculates a cumulative sum from a specific date in the past up to Today's date.

Up to now I've been able only to write this script:

CALCULATE([@Qty_Planned],DATESYTD(CalendarVersamentoEOP[Date].[Date]))
but the measure restart every year and do not stop into Today's date.
 
How to avoid this "restart" of a Year To Date cumulative sum formula?
 
Thanks for help
1 ACCEPTED SOLUTION
v-eqin-msft
Community Support
Community Support

Hi @giroldoale ,

 

Please try:

Measure = CALCULATE([@Qty_Planned],FILTER('Table',[Date]>=DATE(2021,9,30) && [Date]<=TODAY()))

Eyelyn9_0-1656384664799.png

Best Regards,
Eyelyn Qin
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

2 REPLIES 2
v-eqin-msft
Community Support
Community Support

Hi @giroldoale ,

 

Please try:

Measure = CALCULATE([@Qty_Planned],FILTER('Table',[Date]>=DATE(2021,9,30) && [Date]<=TODAY()))

Eyelyn9_0-1656384664799.png

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

SpartaBI
Community Champion
Community Champion

@giroldoale something like:
CALCULATE([@Qty_Planned],CalendarVersamentoEOP[Date].[Date] <= MAX(CalendarVersamentoEOP[Date].[Date]))


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Showcase Report – Contoso By SpartaBI

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.