How to Add New Excel Records in Power Query Without Changing Historical Data
Question details
The user needs to append incoming weekly data in Power Query without overwriting manual edits made to older, historical Excel rows, while also handling duplicate records in the source files.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Importing new weekly data sets using Power Query while ensuring manual historical adjustments are preserved.
- Observed behavior
- Standard Power Query refreshes overwrite the output table entirely, failing to reliably preserve manual edits made directly in the loaded table.
Before proceeding, ensure you have a backup of your original Excel workbook containing the manual adjustments, and identify a unique identifier (like an ID column) to accurately map your historical data to the new records.
Use a Self-Referencing Query Setup
Create a setup where your manual adjustments are kept in a separate table, merged with incoming data, and output together to prevent overwriting during refreshes.
Power Query does not directly preserve manually edited output rows upon refreshing. To work around this, you must merge the new source data with the existing table containing your manual edits.
Import your weekly data into Power Query. Remove duplicates based on your unique ID column, and choose 'Close & Load To...' > 'Only Create Connection'.
Output your initial query to a standard Excel table in a worksheet. Make your manual edits or add new columns directly to this worksheet table.
Click anywhere inside your newly edited worksheet table, go to the 'Data' tab, and click 'From Table/Range' to load this edited table back into Power Query as a secondary query.
In Power Query Editor, select your Source Data query, choose 'Merge Queries as New', and merge it with your self-referencing query using a Left Outer Join based on the unique ID column.
Expand the merged table to include your manually edited columns. Finally, 'Close & Load' this new merged query to your final worksheet, which will now safely preserve edits during future refreshes.

Maintain a Separate Historical Mapping Table
Store all manual edits in a completely separate Excel table and join it with the raw Power Query output using Excel lookup formulas.
Try WPS Office for Advanced Data Management
If you are struggling with complex data refreshes and overwriting issues, WPS Office provides a lightweight, highly compatible alternative for managing large datasets. Enjoy familiar spreadsheet interfaces, seamless data consolidation, and full compatibility with Microsoft Excel formats.
- 1. Download and Install: Download WPS Office for free from the official website and run the quick installation.
- 2. Open Your Excel File: Launch WPS Spreadsheets and open your existing .xlsx file containing your data tables.
- 3. Manage Data Seamlessly: Use built-in data tools like Remove Duplicates, Advanced Filter, and PivotTables to manage your historical data without complicated query setups.

Frequently Asked Questions
Why does Power Query overwrite my manual changes?
By design, Power Query treats the source data as the single source of truth. When you refresh a query, it completely replaces the data in the destination worksheet table, erasing any manual edits or typed data made directly to those specific cells.
How do I remove duplicate records in Power Query?
To remove duplicates, select the column containing your unique identifier in the Power Query Editor, go to the Home tab, click 'Remove Rows', and select 'Remove Duplicates'. This ensures only the first occurrence of each record is kept.
Can I use VBA macros instead of a self-referencing query?
Yes. You can write a VBA macro that checks incoming raw data against your master sheet and only appends new, unseen rows. This completely bypasses Power Query's overwrite behavior, allowing you to manually edit older rows freely.




