Lecture 10 Pivot Table
Lecture 10 Pivot Table
2020.04.22
TODAY’S TOPIC
1. Pivot Table
1. Creating and Modifying
2. Value Field and Formatting
3. Sorting and Filtering
4. Filtering Report
5. Charts
6. Slicers
1. CREATING AND MODIFYING PIVOT
CREATING PIVOT TABLE
Pivot Table is used to create various summaries
in very quick and simple way (with just four
clicks of the mouse).
To create Pivot table
put your data in a table. This is not
required, but it will make your Pivot Table
much more responsive to changes.
name your table.
To change that
right click on one of your numeric
values
choose Summarize Value By from
the context menu, and choose
Count from a number of list 8
functions.
CHANGING VALUE FIELDS
Instead of seeing the total sales as
discrete values, you might like to
see them as a percentage of grand
total, or column total.
To do that
Come to one of your numeric
values and right click.
Click on Show Values As from
the context menu. You'll see
there's quite a selection you
could choose from.
Choose percentage of Grand
Total or percentage of Column
Total, for example.
9
FORMATTING PIVOTTABLE
It's possible that we will also wish to format your pivot. For
example, if you want to show values as currency, right click on
one of them, come to Number Format, choose Currency and say
OK.
There is also a whole selection of tools on the Design tab of your
pivot table tools ribbon which will allow you to format. For
example,
If you add two or more values to the columns or rows area
you get subtotals. By coming up to my Design tab my ribbon,
come to Subtotals, you can switch them off or you could
choose where you want them to display.
You can also choose to switch your grand totals on or off.
By default, the report is in Compact Form, but you can
change it to Outline Form or even Tabular Form.
You can also add some instant styling to your table, much
like you could with regular tables, by coming to your Pivot
Table Styles.
10
3. SORTING AND FILTERING
GROUPING
Pivots allows you to focus on a subset of the data using the Group, Sort, and
Filter tools. Group Field works well with both dates and numeric amounts if
you need to group them.
For example, you might want to see your data showing by quarter and year,
and you only have Order Date field.
To do that
grab Order Date and drag it and drop it into the Columns region. If
Excel has automatically grouped those dates by year, ungroup them. To
do that,
click onto one of the year fields
15
FILTERING REPORT
Sometimes, rather than constantly changing the same
pivot table, it is a better idea to create multiple pivot
tables that answer different people's.
For example, let’s look at how you could create a pivot
tables for Anya, Charlie and Connor.
Come back to our report filter.
select Anya, Charlie and Connor.
Click OK. You still only have one report that is
showing you the total values for all three of those
selected account managers.
come back to the analyze tab
find the options button and click on the little
dropdown to the right of it.
click on show report filter pages, and “Show report
filter pages” dialog appears.
It show all the filters so you can choose, which
You can move and resize the chart, just like I would a
normal chart.
With your chart selected, you will notice your ribbon
has three tabs specific to pivot charts; Format, Design
and Analyze. The Analyze is specific to pivot charts.
To add a slicer
click in the pivot table or pivot chart
that you want to filter
come up to a pivot table tools Analyze
tab or your chart Analyze tab
click Insert Slicer in the filter group
“Insert Slicers” dialog box appears
You can add as many slicers as you
click OK