Forum Discussion
Cumulative sum
- 9 years ago
Hi Jenny,
I guess you have a date table in this scenario. Let's call it "Calendar". Then you can try this formula.
AccumulatedValue = CALCULATE ( SUM ( Table1[Qty] ), FILTER ( ALL ( 'Calendar' ), 'Calendar'[Date] <= MIN ( 'Calendar'[Date] ) ) )Add a date slicer from "Calendar".
Best Regards!
Dale
I need to seriously improve my (non existing) DAX skills as I seem encounter problem every time I want to create a new formula. What would be the way to get the value for the month last year? Tried thousand different approaches with no success. Going to study DAX this weekend :), sounds like a great plan.
Jenny
Hi Jenny,
So how is your weekend? In most of the scenarios, the function "Sameperiodlastyear" is enough with a context "Month' in the report. Surely there are still many other ways.
Reference: https://msdn.microsoft.com/en-us/library/ee634972.aspx
Best Regards!
Dale