Skip to content
Graph Craft

Pivot Table / Matrix

FacebookX
Example: New loan amounts for 2 products by area × quarter (made-up data)HTML + shadcn/ui

Variant: Standard

Made-up data, for demonstration only

Variants

5 types · click one to see it in the frame above
Difference from standard
The recommended type; use it as a starting point
Use when
You need to read actual numbers crossed by 2 dimensions, with subtotals and a grand total

Pivot Table / Matrix is a table that crosses two dimensions of data, one as rows and the other as columns. Each cell is a summary number for that pair, with subtotals and a grand total. This example is new loans in 2025 by product, area and quarter, in millions of dollars (made-up data).

How to read a Pivot Table

  • The row headers are nested in two levels. The outer level is the product (home loan, car loan) and the inner level is the area (New York, other states).
  • The column headers are quarters, Q1 to Q4. The number in a cell is the new loans for that row in that quarter. For example, home loans in New York in quarter 1 are $62 million.
  • The "Total" row of each product is a subtotal. Home loans across both areas in quarter 1 are $100 million (62 + 38).
  • The right-most column is the total for the year. Home loans are $439 million for the year and car loans are $588 million.
  • The bottom-right corner is the grand total, $1,027 million. The sum by rows and the sum by columns must give the same number (439 + 588, and 276 + 163 + 345 + 243). If they differ, a cell is missing.
  • Read along a row to see change over time, and down a column to compare groups. For the whole year, New York (276 + 345 = 621) is higher than the other states (163 + 243 = 406) when both products are combined.

A table gives the numbers directly but does not point out which cell stands out. If you want high and low cells to show at a glance, colour by value. See the Conditional Formatting Table.

When to use it

  • Readers need the real number in every cell, such as a finance team that has to check totals or carry them forward.
  • The data crosses two dimensions and you need totals, such as product × quarter or branch × month.
  • You do not yet know which angle to take. You can swap rows and columns at once to try several views before choosing a chart.
  • You are preparing data before making a chart. A summary table shows what the numbers should be before you draw.

When not to use it

  • You want to see a trend over time. Many numbers cannot be read as a shape. Use a Line Chart.
  • You want to compare size between groups at a glance. Use a Column Chart.
  • You want high or low cells to show through colour without reading numbers. Use a Heatmap.
  • There are more than two nesting levels or too many categories. The table gets so long that nobody reads it to the end. Cut it down to the categories that answer the real question.

Common mistakes

1. Forgetting the subtotals or grand total

The strength of a pivot table is the totals in both directions. Without them readers must add up the numbers themselves and may get it wrong. This example has subtotals by product, totals by quarter and a grand total.

2. Mixing totals and averages

If the cells are totals, the summary row must be a sum. If the cells are ratios or averages, do not add them directly. Recompute from the base of the whole group.

3. Not stating the unit and period

Put "millions of dollars" and "2025" in the table header. This example has both.

4. Left-aligned numbers or decimal points that do not line up

Right-align numbers and use the same number of decimals down the column, so readers can compare digits by eye.

5. Putting everything in one table

If cells hold several kinds of numbers (totals, shares, changes), readers do not know what to look at. Split into several tables or choose one value per cell.

Compared with similar charts

ChartHow it differsChoose it when
Pivot TableReal numbers in every cell, with totalsYou need to read exact values and check totals
Conditional Formatting TableA table coloured by valueYou want standout cells to catch the eye
HeatmapColour stands for value, numbers are secondaryThere are many cells and you care about the overall pattern
Frequency TableCounts frequency of one category dimensionYou list counts per category
Column ChartBars compare sizeYou want to see differences without reading numbers

History and development

The pivot table that lets you drag categories between rows and columns began with the program Lotus Improv, which Pito Salas of Lotus's advanced technology group conceived in 1986. Books on the subject call him the inventor of the pivot table. Improv first went on sale in 1991 on the NeXT computer. Users defined a set of categories, then dragged category names with the mouse to change the view. The Windows version came out in 1993. Microsoft later brought the idea into Excel 5 as PivotTable and added features in later versions, such as the improved wizard in Excel 97.

Frequently asked questions

How is a Pivot Table different from an ordinary data table?

An ordinary table stores raw data one row at a time. A Pivot Table summarises that data as numbers by chosen categories, and you can switch categories without changing the source data.

Are a Pivot Table and a Matrix the same?

In dashboard work they are often used interchangeably: a table with row headers and column headers that cross. Some tools call the kind with totals and drag-to-swap a Pivot Table.

Should I always include subtotals?

Include them when the numbers in the cells can be added. If they are rates or averages, show a total computed from the group's base instead of a sum.

References

  • The Invention of the Pivot Table · Bill Jelen and Michael Alexander · Pivot Table Data Crunching for Microsoft Office Excel 2007 · flylib.comUsed to confirm: Pito Salas conceived Improv in 1986, on sale in 1991 on NeXT, the Windows version in 1993, Excel 5 and Excel 97
  • Pivot table (History section) · Wikipedia · en.wikipedia.orgUsed to confirm: how Improv worked (dragging category names), the PivotTable name in Excel 5, the Pivot Chart in Excel 2000

Last updated 28 Nov 2026