Pivot Table calculate field - variance - on running sum

mattcoll

New Member
Joined
Sep 22, 2007
Messages
6
I have the following need which must be not uncommon, but seems impossible to do.

I have the following data.....


Excel 2010
EFGH
4ref0refvalbud
5aa1215
6ab2415
7bc3515
8bd1215
9ce715
10cf1015
11dg1015
Sheet7 (2)


I need to compare the value to budget and calculate both the variance as a 'value' difference, and a 'percent' difference, AND have this within the pivot table i.e. not outside the pivot table.

So, i have two caluclated fields var=bud-val, and varpc=var/bud

But, wait, i also want to present the val, bud, var as running totals on my first group (ref0), and have the percent difference understand this.

However it doesn't seem to, with the following results. Essentially the 'percent' difference works on the 'No calulation' figures.

No matter what i try, i cannot figure this out.

Any suggestions would be helpful.
Thanks.

This is what i get - with the 'Expected' column being a manual calulation, and the orange items where the calculation is wrong - IMHO.


Excel 2010
JKLMNOPQ
13No CalculationRunning Total InNot in Pivot
14ValuesExpected
15ref0refSum of valSum of budSum of varSum of varpcSum of varpc2
16aa1215-3-20.00%-20.00%-20%
17b2415960.00%60.00%60%
18a Total3630620.00%20.00%20%
19bc351520133.33%133.33%133%
20d1215-3-20.00%-20.00%-20%
21b Total83602356.67%76.67%38%
22ce715-8-53.33%-53.33%-53%
23f1015-5-33.33%-33.33%-33%
24c Total1009010-43.33%33.33%11%
25dg1015-5-33.33%-33.33%-33%
26d Total1101055-33.33%0.00%5%
27Grand Total4.76%
Sheet7 (2)
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

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