Forum Discussion
dhannaa
Helper IV
9 years agoCumulative sum
Hi all, I am trying to achiece a stock report that gives stock value per different products for any given date. To achieve this - and other cool things as well - I would like to have a new c...
- 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
dhannaa
Helper IV
9 years agoIs my idea (described above) possible by a any means? Or does it have some error in logic I don't realize?
v-jiascu-msft
Microsoft Employee
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