Build a pivot table on millions of rows

A pivot table is the fastest way to turn a long list into an answer: revenue per country, orders per month, average basket per channel. In Excel, the source of a regular pivot table is a sheet, so it inherits the 1,048,576-row limit. Here is how pivot tables work, how to build one on a much bigger file, and the habits that make them reliable.

Updated

What a pivot table does, in one paragraph

A pivot table groups rows by the values of one or more columns and calculates something for each group. You put a field in Rows (for example country), optionally one in Columns (for example year), and a numeric field in Values (for example amount, summed). The table shows one line per country, one column per year, and the total amount in each cell, with grand totals at the edges. Nothing in the data changes; the pivot is a view.

Why pivot tables struggle on big files in Excel

  • The source sheet stops at 1,048,576 rows, so a pivot on a truncated sheet gives totals that look right and miss rows.
  • The Data Model (Power Pivot) removes that limit, but you work with a model, relationships and DAX measures, which is a different skill.
  • A pivot cache on hundreds of thousands of rows makes the workbook heavy to save, send and refresh.

Build one in Big Sheets, step by step

Big Sheets opens files of several million rows in the browser, and its pivot tables work on every row. The panel is close to Excel’s: four zones, fields you drag in.

  1. Open your file and click the Pivot table tab. The panel on the right lists every column.
  2. Drag a category, such as country, into Rows.
  3. Drag an amount into Values. You get the sum per country, with a grand total.
  4. Change the calculation if needed: Sum, Average, Count, Distinct count, Minimum, Maximum or Median.
  5. Add a second field to Columns, for example a status, to cross the two.
  6. If you add a date to Rows or Columns, group it by year, quarter, month or day.
  7. Drag a field into Filters to restrict the data before it is totalled, for example only two product categories.

Percentages, subtotals and grand totals

Show values as turns the amounts into shares: % of the row total, % of the column total or % of the grand total. It answers questions like “what share of each country’s revenue comes from each channel” without a single formula.

With two fields in Rows, Subtotals adds a total after each group of the first field. Grand totals are always shown.

See the rows behind any number

A total is only useful if you trust it. Double-click any cell of the pivot table, and Big Sheets switches to the data, filtered on exactly the rows that make that number: country is France and status is overdue, for example. A notice says which filters were applied. Go back to the pivot table and your earlier filters come back.

This is the equivalent of Excel’s Show Details, without creating a new sheet each time.

Keep the result

Turn into a data sheet saves the pivot as an ordinary table in a new tab. You can sort it, format it, chart it, or export it to Excel. A pivot of 5 million rows is often a few hundred lines, which Excel opens without trouble.

Pivot table habits that avoid wrong numbers

  • Clean before you pivot: “Paris” and “PARIS ” are two groups. Trim spaces and fix case first.
  • Check the date column is a real date, not text, or grouping by month will not work.
  • Compare a grand total with a simple SUM on the column, the first time, to make sure nothing was filtered out.
  • Use Distinct count for “how many customers”, not Count, which counts rows.
  • If your data is a report with one column per month, unpivot it into rows first: a pivot table needs one column for the month, not twelve.

Pivot table or Summarize?

Big Sheets also has Summarize, which groups rows into a new sheet: group by one or more fields, then sum, count or concatenate others. Use the pivot table to explore and cross two dimensions; use Summarize when you want a flat table to work on afterwards. Both run on the full file in your browser, and your data is never uploaded.

Try it on your own file

Open it in Big Sheets: no sign-up, and your file never leaves this browser.

One plan: €29 incl. VAT per month, everything included, cancel any time. See pricing

Questions

How many rows can a pivot table handle in Big Sheets?
As many as the sheet: Big Sheets is tested on files up to 5 million rows, the real limit being your device’s memory.
Can I group dates by month?
Yes, by year, quarter, month or day, as long as the column is a date.
Can I export the pivot table to Excel?
Yes. Turn it into a data sheet, then export it to .xlsx or CSV.