Forum Discussion
dhannaa
9 years agoHelper IV
Cumulative 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
v-jiascu-msft
8 years agoMicrosoft Employee
Hi Jenny,
Is the table your visual or source data? There is no date in it. That's why it didn't work. If you have dates, please try to use the dates from table Calendar. A right relationship is also needed.
Best Regards!
Dale
dhannaa
8 years agoHelper IV
Sorry my picture did not tell it all. It was a visual table and there was a calendar table linked to the fact table (dates of my picture/visual were from calendar table), but there must have been something wrong with the calendar table. I anyway managed to tackle all the mysterious problems by remaking my file. Yes!
Jenny