Forum Discussion
Cumulative Total
- 10 years ago
ElliotP Sorry about the original post. It was from my phone and had typos :smileywink:
Okay here is the formula for Running Total as a Calculated Column (prorerly formatted)
Running Total COLUMN = CALCULATE ( SUM ( 'All Web Site Data (2)'[UniquePageviews] ), ALL ( 'All Web Site Data (2)' ), 'All Web Site Data (2)'[Date] <= EARLIER ( 'All Web Site Data (2)'[Date] ) )And as you can see it works! :smileyhappy:
And here's the MEASURE formula
Running Total MEASURE = CALCULATE ( SUM ( 'All Web Site Data (2)'[UniquePageviews] ), FILTER ( ALL ( 'All Web Site Data (2)' ), 'All Web Site Data (2)'[Date] <= MAX ( 'All Web Site Data (2)'[Date] ) ) )Which also works...
Hi All,
Thanks for the previous answers to the initial poster. However, after reading all the posts on the subject i cannot find an answer to the following request:
I need to calculate a running total for QuantityBatches by Plan_Type, Product_ID and Calendar_date in order to make some stock projection and all of this sorted by the Calendar_Date.
Colonne =
calculate(
sum(View_Latest_Schedule[QuantityBatches]),
filter(
ALL(View_Latest_Schedule[Plan_Type]),
View_Latest_Schedule[Plan_Type] = "Frac_Plan"
)
View_Latest_Schedule[CalendarDate] <= EARLIER(View_Latest_Schedule[CalendarDate] )
)