Locked lesson.
About this lesson
Create multiple Pivot Tables and Pivot Charts to display key metrics that are of important to your audience.
Exercise files
Download this lesson’s related exercise files.
08-02-Create and Format Pivot Tables and Pivot Charts Part1-Start.xlsx570.9 KB 08-02-Create and Format Pivot Tables and Pivot Charts Part1-Complete.xlsx
2.2 MB 8.02 create-and-format-multiple-pivot-tables-and-pivot-charts - Exercise.docx
85.7 KB Exercise - Create and Format Multiple PivotTables and Pivot Charts Part 1.xlsx
78.5 KB 8.02 create-and-format-multiple-pivot-tables-and-pivot-charts - Exercise solution.docx
83.2 KB Exercise Solution - Create and Format Multiple PivotTables and Pivot Charts Part 1.xlsx
122 KB
Quick reference
Create and Format Multiple Pivot Tables and Pivot Charts: Part 1
Learn how to create and format multiple PivotTables and PivotCharts from one dataset.
When to use
In this context, we create multiple PivotTables and Pivot Charts as part of the preparation phase of building an interactive dashboard.
Instructions
In this section, we are going to build an interactive Excel dashboard to analyze and present key metrics in an engaging way.
The first part of this process is to prepare the Pivot Charts that we want to use on the dashboard.
In this example, we are using generic sales data to analyze sales for a global megastore. We are going to create 4 PivotTables and Pivot Charts.
NOTE: Our sales data is already formatted as an Excel table.
Pivot Chart 1: Profit by Month (Line Chart)
Our first Pivot Chart will show the Total Profit by Order Date.
- Click anywhere in the Sales Data.
- From the Table Design tab, click Summarize with Pivot Table.
- Ensure the correct Table/Range is showing.
- Choose New Worksheet.
- Click OK.
Rename the Worksheet
- Right-click on the new worksheet.
- Select Rename.
- Type 'Profit by Month'.
Create the PivotTable
- Drag the 'Total Profit' field into the Values area.
- Drag the 'Order Date' field into the Rows area.
- Remove all grouped fields from Rows except 'Order Date'.
- Apply Number formatting as desired.
Remove the Grand Total
- Click in the PivotTable.
- From the Design tab, in the Layout group, click Grand Totals.
- Select Off for Rows and Columns.
Create the Pivot Chart (Line Chart)
- From the PivotTable Analyze tab, in the Tools group, click PivotChart.
- Click on Line.
- Click OK.
Format the Chart
We can now apply formatting as desired. Our dashboard is going to have a dark theme so we will bear this in mind when formatting our Pivot Charts.
- Click on the chart.
- From the Design tab, in the Chart Styles group, select Style 10 from the gallery.
- Click on the Legend and press Delete.
- Add a Chart Title, 'Profit by Month'.
- Change the chart color if desired.
- Click on the markers.
- Press CTRL+1 to open the Format Data Series pane.
- Click the Fill & Line option (bucket icon).
- Click Marker.
- Expand Marker Options.
- Choose Built-in
- Increase the size of the marker to 5.
- Expand Fill.
- Select Vary colors by point.
- Scroll to the bottom.
- Select Smoothed line.
Pivot Chart 2: Average Sales by Country (Map Chart)
Next, we are going to create a PivotTable and Chart to show the Average Sales for North America.
When we need to create multiple PivotTables and Charts, it's more efficient to copy the worksheet and modify the information.
- Hold down CTRL and click and drag the 'Profit by Month' worksheet to the right.
- Rename the worksheet, 'Avg Sales by Country'.
- Delete the Line Chart.
- Click in the PivotTable.
- From the PivotTable Fields pane, remove all fields.
- Drag the 'Units Sold' field to the Values area.
- Drag the 'Country' field to the Rows area.
By default, Excel will calculate the SUM of Units Sold. We need to change this to an Average calculation.
- In the Values area, click the drop-down arrow next to the field.
- Click Value Field Settings.
- Choose Average from the list.
- Apply the desired Number formatting.
Apply a Filter
We are only interested in the data for the North America region. We can apply a filter to filter out all unwanted countries.
- In the PivotTable, click the drop-down arrow next to Row Labels.
- Deselect all countries.
- Select only 'Canada', 'Mexico', and 'United States of America'.
- Click OK.
Create the Pivot Chart (Map Chart)
We cannot create a map chart using PivotTable data.
- Click in the data and press CTRL+A to select all.
- Press CTRL+C to Copy.
- Click in a blank cell.
- Press CTRL+V to Paste.
- Click the Paste Options tag and choose Paste Values.
- From the Insert tab, in the Charts group, click Maps and Filled Map.
- Change the color palette to Colorful Palette 4.
- Change the Chart Style to Style 3.
- Add the Chart Title, 'Average Units Sold - North America'.
We now need to point the chart back to the PivotTable data.
- Click on the chart.
- From the Chart Design tab, click Select Data.
- Replace the Chart data range with the PivotTable cell range.
- Delete the second table.
Lesson notes are only available for subscribers.