Professional Documents
Culture Documents
02 - Get More Out of PivotTables1
02 - Get More Out of PivotTables1
Let's go >
GOOD TO KNOW
Did you take the first tutorial? If not, go to File > New and find Make your first PivotTable.
Version 29-May-2020
In the first part of this class, we introduced you to the concept of a PivotTable. W
explained how a row field can be used as a condition that breaks up a value field.
PivotTable
Country PI Site Type Subjects
This examplBelgium Indigo Non-University 24
The row field...
...breaks upFrance Orange University 72 Country
UK Purple Non-University 21 Belgium
Belgium Blue University 40 France
UK Black GP 13 UK
France Silver GP 5 Total Result
UK Yellow University 34
Previous
ncept of a PivotTable. We also
aks up a value field.
PivotTable
Sum - Subjects
64
77
68
209
Next
But when you first look at a PivotTable, you might find that you need more answers
Previous
u need more answers out of it.
Next
These are all good questions, but for the moment let's focus on just one question...
Previous
just one question...
Next
We answered that question by adding a column field. As a result, the PivotTable no
three new columns that show us the type of site per country.
Previous
the PivotTable now has
Next
If the PivotTable is hard to understand, try this: Read from the left, then from the to
then down. The example below is for Belgium, but it would work for France and UK too.
...24 subjects were ...40 subjects were ...adding up to a
...0 subjects were enrolled in a Non- enrolled in a total of 64
enrolled by a GP. University hospital University hospital subjects enrolled.
Previous
t, then from the top, and
rance and UK too.
...adding up to a
total of 64
subjects enrolled.
Next
How did we make the column field? We dragged the Site Type field, down to the Co
in the PivotTable Fields list.
Previous
ield, down to the Columns area
Next
Practice
Previous
Country PI Site Type Subjects
Spain Coral GP 48
France Orange University 103
Italy Olive Non-Universit 72
UK Purple Non-Universit 85
UK Black GP 35
UK Yellow University 112
France Silver GP 38
Spain Salmon University 125
The PivotTable below should
4 automatically expand to
include those three columns
for Site Type.
Next
Let's review the PivotTable you just made, but this time we've added some special co
colors make it easy for you to see where the row, column, and value fields are located.
Previous
added some special colors. The
ue fields are located.
Total Result
141
72
173
232
618
Next
Here's another way to think about it: The row field is on the left, and the column field
top. Each of these provide a condition to the value field, which sums them up.
Previous
and the column field at the
s them up.
Next
Think of it that way when using the fields list. The row field is on the left, and the co
at the top. Each of these provide a condition to the value field, which sums them up.
Previous
he left, and the column field
ums them up.
Next
One thing to be aware of: If a column field adds a lot of columns to a PivotTable, it wil
very wide.
In this example, the column field added 12 new columns. That's a lot of colu
This will cause people to scroll a lot...
Previous
Country PI Site Type Subjects
Spain Coral GP 10
France Orange University 50
Italy Olive Non-University 32
UK Purple Non-University 26
UK Black GP 42
UK Yellow University 73
France Silver GP 20
Spain Salmon University 84
Italy Maroon Clinic 54
Spain Turquoise Private Hospital 25
France Springgreen National Hospital 39
Spain Bluesky University 76
Italy Greengrass National Clinic 34
Spain Redtomato Private Clinic 15
Spain Gray City Hospital 85
UK Snow University 74
Spain Ivory National Hospital 70
UK Pink Group Practice 36
Italy Lavender Clinic 8
UK Lime State Clinic 28
Italy White City Clinic 38
mns to a PivotTable, it will make it
Next
Private Clinic State Clinic City Hospital Group Practice Total Result
109
166
15 85 365
28 36 279
15 28 85 36 919
But here's an alternative to that: You can use a second row field instead. A second ro
appear indented under the first row field.
Previous
nstead. A second row field will
GOOD TO KNOW
A second row field makes a
vertically-oriented PivotTable rather
than horizontal. Some people find
vertical PivotTables easer to read
because they don't require as much
scrolling from side-to-side.
EXCEL SPEAK
Sometimes people call a second row
field a "secondary row field."
Next
On the next sheet you'll add a second row field. And you'll do that by dragging the
field under the Country field.
Previous
by dragging the Site Type
Next
Practice
Previous
GOOD TO KNOW
You can change the order of
the row fields to get a
different perspective on the
data.
TRY THIS
Display the subtotals for the
countries: click inside the
PivotTable, go to the
PivotTable Tools tab > select
Design > under Subtotals,
choose 'Show all Subtotals
at Top of Group'.
Next
If you need to simplify the PivotTable, you can collapse the data for the second row
and out of the way.
Previous
ata for the second row field "up"
Sum - Subjects
20
39
50
38
62
34
32
85
10
70
15
25
160
42
36
26
28
147
919
Next
You can also collapse or expand the entire second row field, to simplify the PivotTa
more.
Previous
to simplify the PivotTable even
Sum - Subjects
20
39
50
38
62
34
32
85
10
70
15
25
160
42
36
26
28
147
919
Next
You can also have more than one column field. And those column fields can also be
or expanded.
TRY THIS
Click the minus sign next to GP, and the PI Names under GP (Dr. Black, Dr. Coral
and Dr. Silver) will collapse "up" and out of the way. Click the plus sign to bring
back the PI Names. (You can also collapse or expand the entire field like you did on
the previous sheet, by right-clicking.)
Previous
umn fields can also be collapsed
Next
Something to keep in mind: If you need more detail, it's possible to add many more r
or columns fields. In this example, there are three row fields.
Previous
add many more row fields
Sum - Subjects
XPERT TIP 38
st because you can add a bunch of
elds, doesn't mean you should. In
is example, it works fine. But 103
metimes too many fields, with all of
eir indentations, can make the
votTable too complicated for other 72
eople to understand.
48
125
35
85
112
618
Next
Quarter Country PI Site Type Subjects
Q1 Spain Coral GP 4 LOOK HERE
Q1 France Orange University 18 No need to read all the rows of da
the field names in the first row. Yo
Q1 Italy Olive Non-Universi 20 with these on the next sheet. Whe
Q1 UK Purple Non-Universi 35 scroll down and click Next.
Q1 UK Black GP 8
Q1 UK Yellow University 18
Q1 France Silver GP 9
Q1 Spain Salmon University 29
Q2 Spain Coral GP 10
Q2 France Orange University 26
Q2 Italy Olive Non-Universi 14
Q2 UK Purple Non-Universi 13
Q2 UK Black GP 12
Q2 UK Yellow University 35
Q2 France Silver GP 10
Q2 Spain Salmon University 31
Q3 Spain Coral GP 12
Q3 France Orange University 30
Q3 Italy Olive Non-Universi 16
Q3 UK Purple Non-Universi 22
Q3 UK Black GP 7
Q3 UK Yellow University 37
Q3 France Silver GP 7
Q3 Spain Salmon University 31
Q4 Spain Coral GP 22
Q4 France Orange University 29
Q4 Italy Olive Non-Universi 22
Q4 UK Purple Non-Universi 15
Q4 UK Black GP 8
Q4 UK Yellow University 22
Q4 France Silver GP 12
Q4 Spain Salmon University 34
Previous
OOK HERE
o need to read all the rows of data. Just look at
e field names in the first row. You'll be working
ith these on the next sheet. When you're ready,
roll down and click Next.
Next
Practice
Sum - Subjects PI
Quarter Black Coral Olive Orange Purple Salmon
Q3 7 12 16 30 22 31
Total Result 7 12 16 30 22 31
Previous
4 Who enrolled most
subjects in Q3?
Pick one:
Yellow
You're right!
Next
Practice
Click anywhere inside Do you see the Now drag the fields
1 the PivotTable below
2 PivotTable Fields list
3 into place so that you
named Sum of on the right? Good! (If make a vertical
Subjects. you don't see it, PivotTable that has
right-click the Quarters on the left,
PivotTable and and the Countries
choose Show Field indented under the
List.) Quarters.
Previous
Good job! You placed a
secondary row field. Now
scroll down and click Next.
Next
Practice
Click anywhere inside Do you see the Now drag the fields
1 the PivotTable below
2 PivotTable Fields list
3 into place so that the
named Sum of on the right? Good! (If PivotTable shows
Subjects. you don't see it, each PI in its own
right-click the row, and each quarter
PivotTable and in its own column.
choose Show Field
List.)
Previous
Good job! You placed
a row field on the left,
and a column field with
four new columns. Scroll
down and click Next...
Next
Practice
Previous
Good job! Now the data is
easier to read. Scroll down
and click Next...
Next
Practice
Click anywhere inside Do you see the Drag the fields into
1 the PivotTable below
2 PivotTable Fields list
3 position so that you
4
named Sum of on the right? Good! (If can see:
Subjects. you don't see it, • Each site type in its
right-click the own column field.
PivotTable below and • Quarters on the left
choose Show Field • Countries indented
List.) under the quarters.
Previous
In Q3, how many subjects
4 were enrolled by University
hospitals in France?
Pick one:
30
You're right!
Next
Good job. Aren't PivotTables great?
Page 53 of 53