5 - Pivot Tables
5 - Pivot Tables
DS342
3
Pivot Tables
• The pivot table is an Excel tool that allows you to break data down by
categories.
• Sometimes pivot tables are used to display tables of counts, often
called crosstabs or contingency tables.
• However, crosstabs typically list only counts, whereas pivot tables can
list counts, sums, averages, and other summary measures.
• PivotTables allows you to create custom summaries and charts of key
information in the data.
Create a PivotTable in Excel for Windows
• You can change various settings in the Field Settings dialog box.
• To get to this dialog box:
• Click the Field Setting button on the Analyze/Options ribbon.
• OR right-click any of the pivot table cells and select the Field Settings item.
• The pivot table with Value Field Settings changed to Average is shown
below.
Pivot Charts
• The variable in the Values area can be summarized by the Count function.
• This is useful when you want to know, for example, how many of the orders were placed by
females in the South.
• Right-click any number in the pivot table, select Value Field Settings, and select the Count
function.
Grouping
• Showing/hiding subtotals and grand totals (check the Layout options on the Design
ribbon)
• Dealing with blank rows, that is, categories with no data (right-click any number, choose
PivotTable Options, and check the options on the Layout & Format tab)
• Displaying the data behind a given number in a pivot table (double-click any number in
the Values area to get a new worksheet)
• Formatting a pivot table with various styles (check the style options on the Design ribbon)
• Moving or renaming pivot tables (check the PivotTable and Action groups on the
Analyze/Options ribbon)
• Refreshing pivot tables as the underlying data changes (check the Refresh dropdown list
on the Analyze/Options ribbon)
• Creating pivot table formulas for calculated fields or calculated items (check the Formulas
dropdown list on the Analyze/Options ribbon)
Slicers and Timelines
1. Click the arrow next to the time level shown and pick the one you want.
2. Drag the Timeline scroll bar to the time period you want to analyze.
3. In the timespan control, click a period tile and drag to include additional tiles to select the date
range you want. Use the timespan handles to adjust the date range on either side.
Pivot Table with Slicers and a Timeline
Dashboards
31