Subtotals/totals/grand totals in "sum" when using "averaged" values below (Pivot table)

rsrts

New Member
Joined
Jan 20, 2010
Messages
10
Hi!

Question:
Values in picture below under "Average of Amount 100 % Occupancy" is set to average. Is there a workaround for keeping the values for the level 11145 and 11150 to show average while the levels above (111 - Xspedition and 1000 - Delivery) shows the sum of 11145 and 11150, that is 138 000 + 119 600 = 257 600 (business 1000)?
I know I can change just the two upper levels to sum instead of average but since it points to the original data in the source table, wrong values will appear.
In my world the easiest way would be to have a function in the pivot table that just sums the values shown below, like showing a subtotal of a range in a regular table, instead of going back to the source table.

Any suggestions?

More information (if needed):
In the pivot table below I am getting my data from a separate source table in one sheet. This table is setup to search (vlookup) for a specific vehicle type (ie Heavy truck 16 ton) in a price list in another sheet and return the price per hour. When the price for the specific vehicle is found it multiplies it with the possible working hours for that month (also vlookup). So, if there is 184 working hours in a month whereas the price is 650 per hour, the total possible revenue for 100 % occupancy of a vehicle is 119 600. This is shown in the column "Average of Amount 100 % occupancy".

Unfortunately there are several order rows for the vehicle 11145 and 11150 in the source table. Due to several order rows the amount for 100 % Occupancy occurs several times which is the reason that I have to choose "Average" in the pivot table" do display the correct value for 100 % occupancy. The real earned revenue, "Sum of Revenue", is summed up correctly of course.

If a resource (11145, 11150) could only appear under one business (ie only 1000 instead of 1000, 2100, 2120) I would be able to come up with a workaround (sum instead of average) in the source table by dividing ie 119 600 for 11145 by quantity of order rows for that vehicle. Unfortunately I am kind of stuck in this situation since you just cannot say that ie 50 000 belongs to business 1000 and 69 600 to business 2100 for vehicle 11145 and so on... All business could expect to have a 100 % occupancy even though the real total Revenue is spread over several businesses.

34t78t1.jpg
 
Last edited:

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,215,455
Messages
6,124,937
Members
449,196
Latest member
Maxkapoor

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