Excel Pivot Table - calculated field that shows % of grand total

WirelessJoe

New Member
Joined
Jan 7, 2021
Messages
5
Office Version
  1. 2016
Platform
  1. Windows
Hello,

I am trying to produce a pivot table off of data that would show what % of a grand total budget that has been spent on an individual employee.

In the example below, I have a list of employees, their budget, how much of the budget is spent and how much remains. The pivot table should update dynamically as values in the data change, and in column K I would like to have the pivot reflect the fact that Employee 1, at ~1.5M accounts for 3.84% of the total budget spend, as I've indicated with a formula outside of the Pivot. I'd like it to be a calculated pivot field so it automatically updates as the data changes.

Book1
ABCDEFGHIJKLMN
1
2NameBudgetSpentRemainingSpent % of Total Budget
3Employee 11,513,2211,513,221-Row LabelsSum of BudgetSum of Spent
4Employee 2651,131165,156485,975Employee 11,513,2211,513,2213.8475%
5Employee 32,163,153156,5652,006,588Employee 10124,565223,233
6Employee 4535,435535,435-Employee 113,232,323222,555
7Employee 521,13521,10035Employee 12322,332322,330
8Employee 63,235,3352,355,335880,000Employee 133,223,2112,355,355
9Employee 7323,23535,355287,880Employee 14223,22323,533
10Employee 832,33532,335-Employee 1523,23211,235
11Employee 923,223,55315,155,1538,068,400Employee 16156,51622,322
12Employee 10124,565223,233(98,668)Employee 172,3322,332
13Employee 113,232,323222,5553,009,768Employee 18323,253323,253
14Employee 12322,332322,3302Employee 2651,131165,156
15Employee 133,223,2112,355,355867,856Employee 32,163,153156,565
16Employee 14223,22323,533199,690Employee 4535,435535,435
17Employee 1523,23211,23511,997Employee 521,13521,100
18Employee 16156,51622,322134,194Employee 63,235,3352,355,335
19Employee 172,3322,332-Employee 7323,23535,355
20Employee 18323,253323,253-Employee 832,33532,335
2139,329,52023,475,80315,853,717Employee 923,223,55315,155,153
22Grand Total39,329,52023,475,803
23
24
25
26
Sheet1
Cell Formulas
RangeFormula
K4K4=GETPIVOTDATA("[Measures].[Sum of Spent]",$H$3,"[Range].[Name]","[Range].[Name].&[Employee 1]")/GETPIVOTDATA("[Measures].[Sum of Budget]",$H$3)
D3:D20D3=B3-C3
B21:D21B21=SUM(B3:B20)
 

Attachments

  • 1.png
    1.png
    50.3 KB · Views: 11

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Forum statistics

Threads
1,224,823
Messages
6,181,176
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