Pivot Table Fields

gehusi

Board Regular
Joined
Jul 20, 2010
Messages
182
Hi, I'd like to display two data points in a single pivot table - the count of the base data, as well as the percentage of the row. I know how to do one or the other, but is it possible to build a table which displays both next to one another?
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

GlennUK

Well-known Member
Joined
Jul 8, 2002
Messages
11,723
Yes, I'd say so. Can you give an example of your data, and say what your PivotTable layout currently is?
 

gehusi

Board Regular
Joined
Jul 20, 2010
Messages
182
I have a list of account groupings as row fields. The column field has several account types. The data field is a count of the number of accounts within a group that falls into each type. I'd like to display not only the count (the actual number of accounts within a group in each type), but the percentage that count represents of the total within that row. Something like this:

Count Type 1 Type 2 Type 3 Total
Group 1 10 20% 15 30% 25 50% 50 100%
Group 2 33 23% 21 15% 88 62% 142 100%


Let me know if I haven't explained that well.
 

GlennUK

Well-known Member
Joined
Jul 8, 2002
Messages
11,723
Just add the Type to the data again and change the field setting "Show Values As" to be "% of row". Like this:

Excel Workbook
ABCDEFGHIJKL
1GroupTypeTypeData
2Group 1Type 3Type 1Type 2Type 3Total Count of TypeTotal Count of Type2
3Group 2Type 1GroupCount of TypeCount of Type2Count of TypeCount of Type2Count of TypeCount of Type2
4Group 1Type 1Group 15438.30%4229.79%4531.91%141100.00%
5Group 2Type 2Group 24133.33%4234.15%4032.52%123100.00%
6Group 1Type 1Grand Total9535.98%8431.82%8532.20%264100.00%
7Group 2Type 1
8Group 1Type 1
9Group 2Type 1
10Group 1Type 3
Sheet12
 

Forum statistics

Threads
1,175,921
Messages
5,900,301
Members
434,827
Latest member
BebeM

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