calculated field in pivot tables

baggarwal

Well-known Member
Joined
Jul 10, 2002
Messages
591
Hi All:

I have a table that is as simple as this:
P1 P2
2004 Actual 250 350
2005 Actual 500 400

I just want to automatically add a third line using the calculated fields in pivot tables called Variance which is 2005 actual - 2004 actual. The problem is the two rows 2005 actual and 2004 actual are not there in the options list to calculate.

Can someone please explain how i can add the third line called variance automatically using calculated fields.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,887
Hi baggarwal

What you want is not a Calculated Field but a Calculated Item. Right-click for ex. on "2004 actual" on the PT and choose Formulas>Calculated Item.

Hope this helps
PGC
 

Forum statistics

Threads
1,176,042
Messages
5,901,092
Members
434,870
Latest member
michud08

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