logo
search
Power Query Problems

Fix Excel Power Query Folder Data Not Updating After Refresh

Huda QurayshiHuda Qurayshi Oct 10, 2026 868 views

Question details

The user needs to troubleshoot a Power Query connected to a source folder where updated data from existing files is not reflecting in the query or PivotTable after a refresh.

Fix Excel Power Query Folder Data Not Updating After Refresh
Product
Excel
Device & OS
not provided
Scenario
Updating existing files within a source folder and refreshing the connected Excel Power Query to fetch the latest data.
Observed behavior
New changes made to existing files in the source folder are not loaded into the query or the associated PivotTable after executing a refresh operation.
Before you start

Ensure that the source files in the folder have been completely saved and closed, as open files may be locked by another process and prevent Power Query from reading the latest data.

Solution 1Recommended

Review Query Logic in the Advanced Editor

Inspect the full M code to identify if folder connections, sample-file logic, or transformation steps are unintentionally filtering out the updated values.

When dealing with folder connections, Power Query automatically generates sample-file logic. If the structure of your files changes slightly or if specific filters were applied during setup, the query might silently skip updated files.

1
Open Power Query Editor

Go to the 'Data' tab on the Excel ribbon, click on 'Get Data', and select 'Launch Power Query Editor'.

2
Access the Advanced Editor

In the Power Query Editor, select the problematic folder query from the left pane. On the 'Home' tab, click 'Advanced Editor'.

3
Inspect filtering steps

Review the complete M code. Check the source folder path and ensure there are no steps strictly filtering by specific modification dates, exact file sizes, or hardcoded attributes that would exclude the newly updated file.

4
Apply changes and load

Once any restrictive filters are removed or corrected, click 'Done', then click 'Close & Load' on the Home tab to apply the changes to your worksheet.

Review Query Logic in the Advanced Editor
M Code Analysis: Pay special attention to the 'Filtered Hidden Files' and 'Invoke Custom Function' steps in the M code, as they frequently cause files to be skipped if the sample file structure changes.
Free Microsoft Office alternative

Analyze Spreadsheets Seamlessly with WPS Office

If troubleshooting complex Power Query M code in Microsoft Excel is slowing you down, consider trying WPS Office. It provides a lightweight, highly compatible alternative for standard data analysis, filtering, and PivotTable generation without the steep learning curve of advanced queries.

  1. 1. Download and Install: Download WPS Office for free from the official website and follow the straightforward installation instructions.
  2. 2. Open your Data Files: Launch WPS Spreadsheet and open your existing .xlsx or .csv data files directly without worrying about format loss.
  3. 3. Create PivotTables easily: Use the intuitive 'Insert PivotTable' feature to quickly summarize and analyze your raw data without relying on complex background queries.
Fully compatible with Microsoft Excel formats including .xlsx, .xls, and .csvLightweight application that runs smoothly and uses minimal system resourcesFamiliar user interface for quick adoption and seamless migration from ExcelFree and intuitive spreadsheet tools for everyday data organization tasks
QA img-9

Frequently Asked Questions

Why does my Power Query not update when I change a file in the source folder?

This can happen if the query has hardcoded file names, filtered out modified dates inadvertently during the initial setup, or if Excel's background refresh setting prevents the PivotTable from catching up with the query's data load.

How do I access the Advanced Editor in Excel Power Query?

Open the Power Query Editor from the Data tab by clicking 'Get Data' > 'Launch Power Query Editor'. Select your query on the left panel, and click 'Advanced Editor' in the Home tab to view the underlying M code.

Does refreshing a PivotTable automatically refresh its underlying Power Query?

Not always synchronously. If 'Enable background refresh' is checked in the query properties, the PivotTable might finish refreshing before the query finishes downloading new data. Disabling this setting ensures data updates sequentially.

How can I ensure all files in a folder are combined correctly without skipping updates?

When using 'Get Data from Folder', ensure your filtering steps in Power Query only rely on stable attributes like file extensions (e.g., .xlsx) and not specific file names or transient metadata that might change when files are saved and updated.