How can I force subtotals to total the rows beneath them?

cr731

Well-known Member
Joined
Sep 17, 2010
Messages
611
I have a pivot table summarizing actual sales and budget, with a calculated field for variance that is Actuals - Budget. My table also has various columns, like region, sales manager, sales person, etc.

In my pivot table, if I bring in multiple levels, such as sales manager and sales person, it calculates the variance at the subtotal level, rather than summing up the calculated values beneath it. The reason is that my variance is going to be an absolute value, so say a given sales manager has sales people under him who have a -5 variance followed by a +5 variance, this needs to add up to 10, not netting off and being 0.

I can accomplish this using SUMX, such as SUMX(Values([Sales Person]),[Variance]) but then if I re-arrange my row labels, it doesn't necessarily apply any more. I need it to be dynamic so that basically every subtotal within the pivot table sums the rows underneath it rather than calculating the variance.

Is there a way to do this?

Thanks
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,225,562
Messages
6,185,678
Members
453,314
Latest member
amitojsd

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