Grand total for Calculated Field in Pivot Table not working

snigam

New Member
Joined
Jul 24, 2007
Messages
1
Created a calculated field to determine Sales Difference % from one year to the next. Data is Set up by month by style. The Calculated field works correctly for each month, but the grand total columns in the pivot table do not.

Calculated Field Formula: (2007 sales-2006 sales)/2006 sales
Style no. 1
Feb 07 sales 1792 06 Sales 1163 : Cal field: 54.08%
Mar 07 sales 2522 06 Sales 1467 : Cal Field: 71.92%
Apr 07 sales 1626 06 Sales 1086 : Cal Field: 49.72%

Style no. 2
Feb 07 sales 143 06 Sales 0 : Cal field: #Div/0!
Mar 07 sales 299 06 Sales 0 : Cal Field: #Div/0!
Apr 07 sales 230 06 Sales 0 : Cal Field: #Div/0!

Style no. 3
Feb 07 sales 321 06 Sales 0 : Cal field: #Div/0!
Mar 07 sales 587 06 Sales 0 : Cal Field: #Div/0!
Apr 07 sales 586 06 Sales 0 : Cal Field: #Div/0!

Style no. 2 and 3 since Sales for 06 are 0 the calculated field is correct.
Grand Total for these 3 months shows:
Style 1
Total 2007 Sales : 5940
Total 2006 Sales : 3716
Calculated Field: 59.85%

Style 2
Total 2007 Sales : 672
Total 2006 Sales : 0
Calculated Field: #Div/0!

Style 3
Total 2007 Sales : 1494
Total 2006 Sales : 0
Calculated Field: #Div/0!
Style no. 2 and 3 since Sales for 06 are 0 the calculated field is correct.
Total 3 styles:
Total 2007 Sales : 8106
Total 2006 Sales : 3716
Calculated Field: #Div/0! THIS IS MY Problem why does it not calculate, it should say 118%.

Please help!!!!! its driving me CRAZY!!!
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,181,410
Messages
5,929,774
Members
436,688
Latest member
sunnyBNH013

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