# Calculated Field Pivot Table

#### Excel1991

##### Board Regular
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.

 A B C D E F G H I 1999 1999 2000 1999-2000 2000 2001 2000-2001 001 Beginning Balance Ending Balance Beginning Balance VARIANCE Ending Balance Beginning Balance VARIANCE Ending Balance 1 1000 1500 2000 =D1-C1 =G1-F1 2 0 500 500 =D2-C2 =G2-F2 3 100 500 800 =D3-C3 =G3-F3 4

<tbody>
</tbody>

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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Replies
6
Views
72
Replies
0
Views
142
Replies
0
Views
41
Replies
0
Views
48
Replies
0
Views
114