Lesson 9 of 16 · Level 3: Advanced
PivotTables, Charts and Dashboards in Excel
- ⏱ 11 min read
- ❓ 4 review questions
- ✍️ Exercise with solution
- 📥 Downloadable template
In this lesson
- Before you start: clean data
- Create your first PivotTable
- Set up the values: sum, count, average and percentages
- Group dates by month, quarter and year
- Slicers and timelines: filters with buttons
- Refresh: the step everyone forgets
- Worked example: the Portland coffee roaster, no formulas needed
- Charts: choose the right one
- Your first dashboard in 15 minutes
- Summary
- Summarize thousands of rows in seconds with a PivotTable.
- Show percentages and group dates by month, quarter and year.
- Filter with slicers and timelines.
- Choose the right chart and build your first dashboard.
Build your PivotTable and your first dashboard from 300 sample orders. Your grand total should be $122,759.50.
- practice-excel.xlsx · Sales sheet (table tblSales)
A PivotTable summarizes thousands of rows in seconds, without a single formula, and lets you change the analysis by dragging fields with the mouse. It's the tool that impresses most in a job interview and saves the most hours in an office. In this lesson, which opens the Advanced level, you'll learn to create PivotTables, turn them into charts and build a small dashboard.
- Clean data
- Create the PivotTable
- Values and percentages
- Group and filter
- Charts and dashboard
Before you start: clean data
A PivotTable only works well if the source data follows lesson 1's rules: headers in a single row, one record per row, no blank rows or merged cells. Ideally your data is an Excel table (lesson 4): when you add records, the PivotTable includes them the next time you refresh.
To practice, use the tblSales table on the practice file's Sales sheet: 300 orders with the columns Date, Region, Salesperson, Code, Product, Category, Units, Price and Amount. Everything you'll see works the same with 2,000 or 200,000 rows.
Create your first PivotTable
- Click any cell in the data.
- Go to Insert → PivotTable. Excel detects the range (or the table name).
- Choose "New Worksheet" and click OK.
- The PivotTable Fields pane opens on the right: the list of columns at the top and four areas at the bottom.
| Area | What goes there | Example |
|---|---|---|
| Rows | Categories you want to list vertically | Region, Salesperson |
| Columns | Categories across the top (keep them few) | Year or product category |
| Values | What you want to calculate (numbers) | Sum of Amount, Count of orders |
| Filters | Fields that filter the whole report | Product, Sales channel |
Drag Region to Rows and Amount to Values. You now have sales by region. Drag Category to Columns and you get a region × category grid. All in under ten seconds.
1. You want to see sales by region (rows) and by month (columns). Which area do you drag the Amount field to?
What you want to calculate (sum, count, average) goes in Values; what you want to group by goes in Rows and Columns.
Set up the values: sum, count, average and percentages
Click the field inside Values → Value Field Settings:
- Summarize Values By: Sum, Count, Average, Max, Min. If a number shows up as "Count" instead of "Sum," the column has blank cells or text.
- Show Values As: "% of Grand Total," "% of Column Total," "Difference From" or "% Difference From" (for example, change versus the previous month). This is the analysis managers usually ask for.
- Number Format: set it from this dialog, not from the ribbon, so it survives every refresh.
Pro tip: you can drag the same field to Values twice, once as "Sum of Amount" and once as "% of Grand Total." That way you see each region's dollars and its share side by side.
2. How do you show each region's share of the total without writing formulas?
"Show Values As" calculates percentages, differences and running totals right inside the PivotTable.
Group dates by month, quarter and year
When you drag Date to Rows, Excel usually groups it by years, quarters and months automatically. If it doesn't, right-click a date in the PivotTable → Group → select Months and Years. Always keep "Years" alongside "Months," or January 2025 and January 2026 will be added together.
Slicers and timelines: filters with buttons
With the PivotTable selected, go to PivotTable Analyze → Insert Slicer and choose, say, Region and Salesperson. Buttons appear that filter the table with one click. A Timeline (PivotTable Analyze → Insert Timeline) does the same for dates, with a slider by month or quarter.
One slicer can control several PivotTables at once: right-click the slicer → Report Connections. That's the backbone of a dashboard.
Refresh: the step everyone forgets
A PivotTable doesn't recalculate on its own when the data changes. Click PivotTable Analyze → Refresh (or Alt + F5), or Data → Refresh All (Ctrl + Alt + F5) if you have several. You can also check "Refresh data when opening the file" under PivotTable Options → Data.
3. You added 50 new rows to the source data and the PivotTable didn't change. What do you do?
PivotTables don't recalculate on their own. If the source is an Excel table, new rows are included when you refresh; if it's a fixed range, update the source with Change Data Source.
Worked example: the Portland coffee roaster, no formulas needed
In the SUMIFS lesson you built a sales-by-region grid by hand. With a PivotTable on tblSales you get it in seconds: Region to Rows and Amount to Values twice, the second with Show Values As → % of Grand Total.
| Region | Sum of Amount | % of Grand Total |
|---|---|---|
| West | $44,918.00 | 36.6% |
| Central | $39,574.50 | 32.2% |
| East | $38,267.00 | 31.2% |
| Grand Total | $122,759.50 | 100% |
Now swap Region for Product and apply a value filter (Value Filters → Top 10 → 5): the French press brings in $44,135, 36% of all revenue, followed by whole-bean coffee ($21,780) and the 70% dark chocolate ($15,210). Put Date in Rows grouped by month and you get the trend for the year:
- Monthly sales $122,759.50January through September: the sum of all nine months.
- Best month: May $19,071.50Worth asking why: Mother's Day gift orders (May 10, 2026)? A promotion? One big customer?
- Worst month: June $10,617.50Right after the best one: a drop worth explaining before anyone panics.
4. In that PivotTable, West totals $44,918 out of $122,759.50. What does the "% of Grand Total" column show on its row?
$44,918 / $122,759.50 = 0.366, or 36.6%. The share depends on each region's dollars, not on the number of regions.
Charts: choose the right one
| You want to show… | Use | Avoid |
|---|---|---|
| A trend over time | Line | 3-D bars |
| A comparison between categories | Bar or column, sorted largest to smallest | A pie with many slices |
| Parts of a whole (2 to 5 parts) | Pie or doughnut | A pie with more than 6 slices |
| The relationship between two variables | Scatter | Line |
| Actual vs. target | Columns + line (combo chart) | Two separate charts |
To create a PivotChart, select the PivotTable and go to PivotTable Analyze → PivotChart. The chart responds to the same filters and slicers.
Five rules for professional-looking charts
- Use a title that states the takeaway: "West sales up 18% in March," not "Sales by region."
- Delete what adds nothing: heavy gridlines, borders, shadows and 3-D effects.
- Sort bars from largest to smallest.
- Use one accent color for what you want to highlight and gray for the rest.
- Show data labels only when there are few bars.
Your first dashboard in 15 minutes
- Minute 1Set up two sheetsOne called Dashboard (what people see) and one called Calc (what does the work).
- Minutes 2–5Three PivotTablesOn Calc: sales by month, sales by region and the top 5 products (Value Filters → Top 10 → 5).
- Minutes 6–8A PivotChart for eachMove them to the Dashboard sheet (right-click → Move Chart).
- Minutes 9–10Connected slicersInsert Region and Category slicers and connect them to all three PivotTables with Report Connections.
- Minutes 11–13Three big KPIsTotal sales, average order and number of orders, with formulas on the data table or with
GETPIVOTDATA. - Minutes 14–15Final cleanupHide gridlines (View → Gridlines) and line everything up.
With the practice data, your three KPIs should read $122,759.50 in total sales, 300 orders and an average order of $409.20 ($122,759.50 / 300). For a deeper look at the questions analysts answer with pivots, see the PivotTables for analysis lesson in our free data analytics course.
The rest of the Advanced level covers dynamic array functions (FILTER, SORT, UNIQUE), Power Query for importing and cleaning data automatically, and macros for automating repetitive tasks.
Project: your expense dashboard
Using your expense list (expand it to a full month, at least 40 records):
- Convert it into an Excel table.
- Create a PivotTable with the total by category and its share of the total.
- Group by week or by month.
- Create a bar chart sorted from highest to lowest spending.
- Add a category slicer.
- In a text box, write one conclusion: which category could you cut?
See solution
PivotTable: Category in Rows; Amount twice in Values (Sum and % of Grand Total); Date in Rows above Category, grouped by Months, or by Days with 7 days for weeks. Chart: PivotChart → Bar, and sort the PivotTable largest to smallest (right-click a value → Sort → Sort Largest to Smallest). Slicer: PivotTable Analyze → Insert Slicer → Category. Before you call it done, check:
Summary
- A PivotTable summarizes thousands of rows by dragging fields into Rows, Columns, Values and Filters.
- "Show Values As" gives you percentages and changes without formulas.
- Group dates by month and year, and filter with slicers and timelines.
- PivotTables don't recalculate on their own: click Refresh.
- Pick the chart for what you want to show, and title it with the takeaway.
Next lesson: FILTER, SORT, UNIQUE and LET: Excel Dynamic Array Functions. You'll meet formulas that return entire tables and update themselves.
Create your account in 30 seconds, mark your lessons and download your certificate at the end.