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?
 

Some videos you may like

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

GlennUK

Well-known Member
Joined
Jul 8, 2002
Messages
11,402
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,402
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
 

Watch MrExcel Video

Forum statistics

Threads
1,108,954
Messages
5,525,879
Members
409,669
Latest member
JDCupps

This Week's Hot Topics

Top