Calculations using Pivot Table data...

ExcelUser64

New Member
Joined
Oct 18, 2017
Messages
9
I'm a reasonably new user of Pivot Tables, but appear to have stumped other experts at work with this problem. I have the following sample data in the first three columns and the Pivot Table to the right of it as follows:

[TABLE="width: 656"]
<colgroup><col><col><col><col><col><col><col><col><col><col></colgroup><tbody></tbody>[/TABLE]
[TABLE="width: 605"]
<colgroup><col><col><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Name[/TD]
[TD]Task[/TD]
[TD]Status[/TD]
[TD][/TD]
[TD]Count of Task[/TD]
[TD]Column Labels[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]Task 1[/TD]
[TD]Done[/TD]
[TD][/TD]
[TD]Row Labels[/TD]
[TD]Done[/TD]
[TD]Miss[/TD]
[TD]WIP[/TD]
[TD]Grand Total[/TD]
[/TR]
[TR]
[TD]Chris[/TD]
[TD]Task 2[/TD]
[TD]Miss[/TD]
[TD][/TD]
[TD]John[/TD]
[TD]2[/TD]
[TD]1[/TD]
[TD][/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Luke[/TD]
[TD]Task 3[/TD]
[TD]Miss[/TD]
[TD][/TD]
[TD]Luke[/TD]
[TD][/TD]
[TD]2[/TD]
[TD]1[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Tom[/TD]
[TD]Task 4[/TD]
[TD]Done[/TD]
[TD][/TD]
[TD]Chris[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]Task 5[/TD]
[TD]Done[/TD]
[TD][/TD]
[TD]Tom[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Chris[/TD]
[TD]Task 6[/TD]
[TD]WIP[/TD]
[TD][/TD]
[TD]Grand Total[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]3[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]Luke[/TD]
[TD]Task 7[/TD]
[TD]WIP[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tom[/TD]
[TD]Task 8[/TD]
[TD]Miss[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]Task 9[/TD]
[TD]Miss[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Chris[/TD]
[TD]Task 10[/TD]
[TD]Done[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Luke[/TD]
[TD]Task 11[/TD]
[TD]Miss[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tom[/TD]
[TD]Task 12[/TD]
[TD]WIP[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

What I need to do is add the number of tasks that were either Missed or WIP and divide that number by the Grand Total. Near as I can tell, this means that for each user, I need to somehow 'identify' the data that I want to use for the above calculation from within the Pivot Table.

So, how do I pick the appropriate data, add it, and then divide by another value? This, of course, would go into a new calculated field within the Pivot Table (say, "IncompleteWork").

Thanks!
 
One final question. Is there a way to show just the PPC colums as a percentage of the total and leave the others as raw data?
 
Upvote 0

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Not really, unless you have Power Pivot. You could simply duplicate the fields and then hide the columns for the ones you don't want visible, though that's messy.
 
Upvote 0
Really? You can duplicate the fields in the Pivot Table?
How do I place a second instance of 'Count of Task' in the Pivot Table's 'Values' field?
 
Upvote 0
Just drag the field in again.
 
Upvote 0
Tried that - I had to delete the 'Calculated Item' first, then could drag in a second copy. However, when I then tried to re-add the Calculated Item, it wouldn't do it (Multiple Data Fields of the same field aren't supported with Calculated Items). Oh well.

Fortunately, the prior advice gets me what I need - so thanks again!
 
Upvote 0
Ah yes! That's actually one of the reasons that calculated items are rarely useful, so I should have remembered that really!
 
Upvote 0

Forum statistics

Threads
1,223,718
Messages
6,174,082
Members
452,542
Latest member
Bricklin

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