Cumulative sum in PowerPivot

Maxiac1

New Member
Joined
Jun 7, 2016
Messages
2
Hi everybody,
Tried for a while now, but I couldn’t solve the following issue:
I have a data table in Excel, which looks like the following:


What I’d like to have is this:


I encountered the following issue:

  • When I filter for the current YearMonth (in my example 201602), the row “Apple” disappears, as there is no sales of apples in 201602. However, there is a history of sales for apples, which are cumulated (Column: Sales of Country to Date). Also, there is a forecast, which is the total of past sales and future sales of apples (Colomn: Sales of Country Forecast).
Thank you in advance.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Power Pivot will read your filter first. So it reads 201602 & pulls in Banana from there. Apple isn't even looked at, regardless that there is past history. If you want the data from the table you specified, I would create a table with a slicer for "date". Then you select the date range to give you the corresponding Product sales total. Just how I would do it personally. Thanks!
 
Upvote 0
James, thanks for your reply!
Unfortunately, a slicer is not an option, as I need to format the Pivot table (colors, fonts, borders, etc.) to fit a certain template.
Any other possible way to solve this? Any help is very much appreciated! Thanks!
 
Upvote 0

Forum statistics

Threads
1,215,465
Messages
6,124,982
Members
449,201
Latest member
Lunzwe73

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top