# Pivot Tables and Summary Reporting

> Summarising large tables interactively with pivot tables, grouping, calculated fields, slicers and percent-of-total views. Free notes, key concepts, resources...

Canonical: https://www.internhack.in/roadmaps/tracks/data-analyst/pivot-tables
Last updated: 2026-11-28

Summarising large tables interactively with pivot tables, grouping, calculated fields, slicers and percent-of-total views.

Beginner · about 4 hours · difficulty 2/5

Learn first: [Formulas and Functions That Matter](https://www.internhack.in/roadmaps/tracks/data-analyst/spreadsheet-formulas)

A pivot table is a GROUP BY you can drag around. It is the fastest way to explore a dataset in a spreadsheet and the tool most business users already understand.

### Core moves

- Drag a category into **Rows**, another into **Columns**, a numeric field into **Values**.
- Change the aggregation: sum, count, average, distinct count (Excel Data Model).
- **Show values as**: percent of row, percent of column, percent of grand total, running total, difference from previous. These answer "share" and "growth" questions instantly.
- **Group** dates by month, quarter and year, or numbers into bins.
- Add **slicers** and timelines for interactive filtering.

### Keep pivots honest

- Base pivots on an Excel Table so new rows are included after Refresh.
- Watch for blank categories and "(blank)" rows; they often signal data quality problems.
- Averages of averages are wrong. If you need an average price, compute total revenue divided by total units, not the mean of a price column.
- Calculated fields in classic pivots operate on sums, which can surprise you. For ratios, consider the Data Model with measures (the same idea as DAX later on).

**Pitfall:** copying pivot output into a report as static numbers and forgetting where it came from. Keep the pivot and label the source. Move on when you can answer "which three products drove most of the revenue change between two quarters" with a single pivot in under five minutes.

## Key concepts

- **Rows, columns, values, filters**
- **Show values as percent and difference**
- **Date and number grouping**
- **Slicers and timelines**
- **Calculated fields and their limits**
- **Data Model and distinct count**
- **GETPIVOTDATA**

## Mini project

Using a public retail dataset (e.g. the UCI Online Retail dataset), build a pivot showing monthly revenue by country with percent-of-total, plus slicers for product category.

## Check yourself

Why is the average of per-store average prices not the same as the overall average price, and how would you compute the correct one in a pivot?

## Free resources

- [Excel help and learning](https://support.microsoft.com/en-us/excel) (Microsoft)
- [Google Sheets help](https://support.google.com/docs) (Google)

Previous: [Lookups: XLOOKUP, INDEX/MATCH and Friends](https://www.internhack.in/roadmaps/tracks/data-analyst/spreadsheet-lookups) · Next: [Charts and Simple Dashboards in Spreadsheets](https://www.internhack.in/roadmaps/tracks/data-analyst/spreadsheet-charts)

## More in Spreadsheets as a Serious Analysis Tool

- [Spreadsheet Foundations and Good Structure](https://www.internhack.in/roadmaps/tracks/data-analyst/spreadsheet-foundations)
- [Formulas and Functions That Matter](https://www.internhack.in/roadmaps/tracks/data-analyst/spreadsheet-formulas)
- [Lookups: XLOOKUP, INDEX/MATCH and Friends](https://www.internhack.in/roadmaps/tracks/data-analyst/spreadsheet-lookups)
- [Pivot Tables and Summary Reporting](https://www.internhack.in/roadmaps/tracks/data-analyst/pivot-tables)
- [Charts and Simple Dashboards in Spreadsheets](https://www.internhack.in/roadmaps/tracks/data-analyst/spreadsheet-charts)
- [Power Query, Data Validation and Repeatable Cleanup](https://www.internhack.in/roadmaps/tracks/data-analyst/power-query-validation)

## Related

- [Roadmaps](https://www.internhack.in/roadmaps)
- [Data Analyst Roadmap](https://www.internhack.in/roadmaps/tracks/data-analyst)
