New Tool Radar

AI for Data & Spreadsheets

How to Reconcile an AI-Generated Pivot Summary Against the Source Rows

Reconcile an AI-generated pivot summary against the source rows it was built from.

Schematic with three steps: Check that every source row appears in; Add each group by hand and compare; Find the cause in the wrong groups.

An AI tool that builds a pivot summary from a table can group the rows wrongly, drop a category, or sum a text column as a count instead of a sum, and the summary still looks tidy. The source rows are the check: the summary’s groups must cover every row, and its totals must equal the sum of the rows in each group. Reconcile the summary group by group before quoting it.

What you need

  • The AI-generated pivot summary
  • The source rows it was built from
  • A hand total for each group in the summary

Step 1: Check that every source row appears in a group

Count the rows in the source table and add up the row counts across the summary’s groups. If the groups hold fewer rows than the source, a category was dropped or filtered out.

Step 2: Add each group by hand and compare with the summary

For each group, add the source rows that belong to it and compare the hand total with the summary’s total for that group. Mark each group as matching or wrong.

Step 3: Find the cause in the wrong groups

For each wrong group, check whether the grouping field has a variant spelling, whether a text value was counted instead of summed, or whether a row was left out. Fix the cause in the source or the grouping, then rebuild the summary.

Worked example: synthetic sales by region

The table below is a synthetic example. It shows the expected result of reconciling a pivot summary; no summary was generated.

Group Rows Summary total Hand total
North 12 480 480
South 10 390 390
East 8 210 290
Total 30 1,080 1,160

Expected result (UNTESTED). North and South match, but East shows 210 against a hand total of 290, because two East rows were grouped under a misspelled variant. Fixing the spelling gives a total of 1,160, matching the hand total. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • A pivot that counts instead of summing gives a row count, not a total; check the value field setting.
  • Filtered rows are left out of the summary silently; check the filter before trusting the total.
  • A group with a blank key collects every row with no category; read it before ignoring it.
  • Refreshing the source does not refresh the pivot; refresh the pivot after fixing the source.

Sources

See all