New Tool Radar

AI for Data & Spreadsheets

How to Check Whether a Pivot Table Grand Total Includes Filtered Rows

Check whether a pivot table grand total includes rows hidden by a filter.

Schematic with three steps: Read the filter on the pivot table; Compare the grand total with the full; Decide whether the filtered total is the.

A pivot table’s grand total follows the filter: filter the table to one region and the grand total shows only that region, not the whole dataset. That is correct behaviour, but it surprises readers who expect the grand total to stay fixed, and it can make a filtered view look like the whole business. Before quoting a grand total, check what the filter is hiding.

What you need

  • The pivot table with its filters visible
  • The source data, with its full total
  • A note of which filter is applied

Step 1: Read the filter on the pivot table

Look at the filter fields on the pivot table and write down what is selected: which regions, months or categories are included, and which are left out. A filter with one item selected is easy to miss.

Step 2: Compare the grand total with the full source total

Add the source data by hand or with a SUM and compare with the pivot’s grand total. If the pivot total is smaller, the difference is the filtered-out rows.

Step 3: Decide whether the filtered total is the one to quote

If the report is about the filtered group, quote the filtered total and name the filter. If the report is about the whole dataset, clear the filter and re-check the grand total before quoting it.

Worked example: synthetic regional sales pivot

The table below is a synthetic example. It shows the expected result of checking a filtered grand total; no workbook was opened.

Check Value Result
Full source total 1,000 All regions
Filter applied North only South and East hidden
Grand total shown 400 North only
Rows hidden by the filter 20 South and East rows
Grand total with filter cleared 1,000 Matches the source

Expected result (UNTESTED). with the filter set to North only, the grand total shows 400, not the full 1,000; clearing the filter restores the grand total of 1,000, which matches the source. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • A report filter, a row filter and a slicer can all filter the same pivot at once; check all three.
  • Subtotals follow the same rule as the grand total: they show only the filtered rows.
  • A pivot chart linked to the pivot follows the same filter, so the chart and the table agree.
  • Showing items with no data can add empty rows that look like missing data; check the field settings.

Sources

See all