Excel 2007: Grand total for filtered pivot table.

Samoht

New Member
Joined
Sep 16, 2010
Messages
1
Hi,

There is probably an easy solution for my problem but I'm stuck.

I've got a pivot table based on a table, the pivot table are configured as follows:
Report Filter: Year
Column Label: Week
Row Label: Country
Values: A Calculated field called 100BC which divides column "case_with_100BC" with "cases_with_C" ='case_with_100BC'/'cases_with_C'

The calculated field 100BC is used for per week and per country. The problem is that we are looking at 4 different countries only but the file includes several more countries so we are filtering the Row label to the 4 desired countries on a weekly basis. But we also look at all countries combined including the other countries and the 4 countries which means that if I use grand total I will get wrong numbers for the combined countries.

This has so far been solved by using two different pivot tables, one filtered for the 4 countries and one not filtered to get the result for the combined countries.

But since there are other people working with this file and they just copy data for the 4 countries and also the combined result and paste it into another Excel sheet we would like to have it so that you can select 5 cells (where the first 4 is the 4 countries and the 5th is the result for combined).

Is there any way to manipulate Grand Total so that it doesn't use the data for the filtered country only but include all countries?

I've tried with getpivotdata but it doesn't automatically follows the expansion of the pivot table when the weekly data is added.

Thanks in advance! :)

Regards
Thomas
 

Some videos you may like

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Watch MrExcel Video

Forum statistics

Threads
1,122,514
Messages
5,596,609
Members
414,080
Latest member
penguin23

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
Top