Forum Discussion
Anonymous
6 years agoNot applicable
Cumulative sum that resets every year
Hi, I guess my question is simple, I want a cummlative sum that resets every year. I went through almost all the threads here and tried the formulas with no luck. Here is a sample of my data. The f...
- 6 years ago
Hi Anonymous ,
I create a sample. Please have a try to check if it is what you want.
- Create a year column
Year = YEAR('Table'[Date])- Create a measure
Measure = CALCULATE ( SUM ( 'Table'[Approved] ), FILTER ( ALL ( 'Table' ), 'Table'[Date] <= MAX ( 'Table'[Date] ) && 'Table'[Year] = MAX ( 'Table'[Year] ) ) )
v-xuding-msft
Community Support
6 years agoHi Anonymous ,
I create a sample. Please have a try to check if it is what you want.
- Create a year column
Year = YEAR('Table'[Date])
- Create a measure
Measure =
CALCULATE (
SUM ( 'Table'[Approved] ),
FILTER (
ALL ( 'Table' ),
'Table'[Date] <= MAX ( 'Table'[Date] )
&& 'Table'[Year] = MAX ( 'Table'[Year] )
)
)
Anonymous
6 years agoNot applicable
Thank you, this solution was the simplest and it fit my case. I am amazed with how poeple are helpful here
- amitchandak6 years ago
Super User
Anonymous , Looking at marked solution. You seems to have marked the message to wrong person 😀
- Anonymous6 years agoNot applicable
amitchandak You are right 😛 and I want to take the chane to thank you also for your response