Compare Excel Pivot Table Refreshes and Find Changed Rows
Question details
Identify rows and values that changed between two refreshes of an Excel Power Pivot table.

- Product
- Microsoft Excel Power Pivot
- Device & OS
- not provided
- Scenario
- A user wants to compare a large PivotTable's results before and after refreshing its data.
- Observed behavior
- The refreshed PivotTable does not automatically retain a row-by-row history of previous results.
Choose a stable, unique key for each result row and the numeric value you want to compare. Configure the PivotTable so row labels are visible, and exclude subtotal and grand total rows from the snapshots.
Compare Before-and-After PivotTable Snapshots
Use saved values and matching keys to identify added, removed, and changed results after a refresh.
The snapshots must contain one row per unique key. If a result is identified by several fields, create a consistent composite key from those fields in both snapshots.
This method compares displayed PivotTable results, which may be aggregated; it does not necessarily identify changes to individual source records.
Before refreshing, copy the PivotTable results to a new worksheet and use Home > Paste > Values. Keep a Key column and a numeric Amount column, then select the range and choose Insert > Table. Name the table OldSnapshot on the Table Design tab.
Select Data > Refresh All, then copy the refreshed results to another worksheet using Home > Paste > Values. Create a table with the same Key and Amount column names and name it NewSnapshot on the Table Design tab.
On a comparison sheet, add the headers Key, Old Amount, New Amount, Change, and Status in cells A1:E1. In A2, enter =UNIQUE(VSTACK(OldSnapshot[Key],NewSnapshot[Key])) to list keys from both snapshots. This formula requires an Excel version that supports UNIQUE and VSTACK.
In B2, enter =IFNA(XLOOKUP(A2,OldSnapshot[Key],OldSnapshot[Amount]),0). In C2, enter =IFNA(XLOOKUP(A2,NewSnapshot[Key],NewSnapshot[Amount]),0). In D2, enter =C2-B2. Fill these formulas down alongside the key list.
In E2, enter =IF(COUNTIF(OldSnapshot[Key],A2)=0,"Added",IF(COUNTIF(NewSnapshot[Key],A2)=0,"Removed",IF(D2<>0,"Changed","Unchanged"))) and fill it down. Select the comparison range and use Data > Filter to show Added, Removed, or Changed rows.

Review Spreadsheet Snapshots with WPS Office
WPS Office is a free, lightweight Office alternative with a familiar spreadsheet interface and Microsoft Excel format compatibility for moving existing workbooks. You can open exported snapshot values for review, but WPS does not provide Excel Power Pivot refresh history or fix its refresh behavior.

Frequently Asked Questions
Can Excel show what changed in a PivotTable after a refresh?
Excel does not automatically retain a row-by-row change history for a refreshed PivotTable. Save its results as values before and after the refresh, then compare the snapshots using matching keys.
What if rows are added or removed after the refresh?
Create a combined list of keys from both snapshots, then use COUNTIF to check whether each key exists in the old and new tables. Label keys found only in the new table as added and those found only in the old table as removed.
What should I do if a single column does not uniquely identify a row?
Create a composite key from the fields that together identify each result row. Apply the same construction to both snapshots and check that each key appears only once.
Can I compare snapshots without UNIQUE or VSTACK?
Copy the Key columns from both snapshots into one column on the comparison sheet, select that column, and choose Data > Remove Duplicates. You can then use lookup formulas to retrieve and compare the amounts.




