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

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,884
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,136,260
Messages
5,674,693
Members
419,520
Latest member
Jennifer4Dillon

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