Forum Discussion
Cumulative Measure
- 4 years ago
Does this work:
CALCULATE( SUMX( VALUES(Dates[Date]), [Daily Forecast] ), FILTER( ALLSELECTED( Dates ), Dates[Date] <= MAX(Dates[Date]) )) )
I think the issue is that the base measure "90 Days Complete" is always returning a value for "today".
If you modify that to give 90 days from the latest date in the filter context it should get a bit further.
I would also have thought for a cumulative total you'd need a SUMX over dates in your last measure but I might be mis understanding what output you're wanting.
Thanks for weighing in bsdobbs!
I'm trying to dynamically calculate the total story points completed, going back 90 days from today. I'm then trying to take that value to calculate the avg. story points completed by day, over the past 90 days. Third, I'm trying to then take the daily avg. value to create a cumulative sum of the daily avg.
- bcdobbs4 years agoCommunity Champion
Does this work:
CALCULATE( SUMX( VALUES(Dates[Date]), [Daily Forecast] ), FILTER( ALLSELECTED( Dates ), Dates[Date] <= MAX(Dates[Date]) )) )- Anonymous4 years agoNot applicable
It works like a dream! I hereby declare you as my hero of the day!
Thank you!