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...
As I try to learn Power BI,
I have face the same question also but the data i have may have slightly different than the above situation.
I have a sample data which are the sales data of some countries.
I want to find the cumulative total sales but I have sales which happen more than once in the same day.
I have try to apply the above formula but its only apply on 'year' level but still the value are incorrect also.
Here is what I intend to get: Chart I want to have
Here are the sample data: Sample data picture
Here's the formula I try to apply: Formula of cumulative total I tried to apply
(where the date here are the 'Order Date' and with the value which is 'Sales')
Really appreciate if any one can have reply, if there is anything you want, I will provide.
Thank alot!