Calculated Field Pivot Table

Excel1991

Board Regular
Joined
Aug 1, 2018
Messages
58
Hello All,

I am trying to create a calculated field in a pivot table so that i can find the variance between the current years beginning account balance and the prior years ending account balance.

[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1999[/TD]
[TD]1999[/TD]
[TD]2000[/TD]
[TD]1999-2000[/TD]
[TD]2000[/TD]
[TD]2001[/TD]
[TD]2000-2001[/TD]
[TD]001[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Beginning Balance[/TD]
[TD]Ending Balance[/TD]
[TD]Beginning Balance[/TD]
[TD]VARIANCE[/TD]
[TD]Ending Balance[/TD]
[TD]Beginning Balance[/TD]
[TD]VARIANCE[/TD]
[TD]Ending Balance[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1000[/TD]
[TD]1500[/TD]
[TD]2000[/TD]
[TD]=D1-C1[/TD]
[TD][/TD]
[TD][/TD]
[TD]=G1-F1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]0[/TD]
[TD]500[/TD]
[TD]500[/TD]
[TD]=D2-C2[/TD]
[TD][/TD]
[TD][/TD]
[TD]=G2-F2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]100[/TD]
[TD]500[/TD]
[TD]800[/TD]
[TD]=D3-C3[/TD]
[TD][/TD]
[TD][/TD]
[TD]=G3-F3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

I do not know how to have to calculate the field so that I can subtract the previous years ending balance from the current years starting balance. Theoretically you would think that whatever you left off with last year SHOULD be your starting balance in the current year; however, that is not that case so I want to illustrate the variance for each line item.

I know I could copy and paste and do this manually, but I would like it in a pivot so that I can include a slicer-by year. This way i can sort the pivot from largest variance to smallest variance and just cycle through the years to get a feel for which line items are causing the variance.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Forum statistics

Threads
1,224,820
Messages
6,181,159
Members
453,021
Latest member
Justyna P

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