Power Query Problems

Fix Excel Power Query Relative File and Table Refresh

Algirdas JasaitisAlgirdas Jasaitis Dec 2, 2026 869 views

Question details

The user needs a Power Query connection to read current data from the intended file and worksheet or table.

Fix Excel Power Query Relative File and Table Refresh
Product
Microsoft Excel Power Query
Device & OS
not provided
Scenario
A query builds a file path from named ranges using Excel.CurrentWorkbook, then reads a workbook with Excel.Workbook.
Observed behavior
The query returns old or unexpected data when reading a specific worksheet or table.
Before you start

Identify the intended source file and whether the data is on a worksheet or in an Excel table. Save any changes in the source workbook, and note the expected object name before inspecting the query.

Solution 1Recommended

Verify the source path and selected workbook object

Use this approach when the query may be reading an old file copy or selecting a worksheet instead of a table.

1
Open the query

In Excel, select Data > Queries & Connections, then double-click the affected query to open Power Query Editor.

2
Check the named ranges

In Excel, select Formulas > Name Manager and inspect FolderPath and FileName. Confirm that their values combine into the intended full file path, including the necessary path separator.

3
Inspect the source

In Power Query Editor, select the Source step under Applied Steps. Check the file path expression and the preview from Excel.Workbook; open the referenced file separately to confirm it is not an old copy.

4
Select the correct object

Select the Navigation step under Applied Steps and check its formula. Use Kind="Sheet" for a worksheet or Kind="Table" for an Excel table, together with the intended Item name. For example, a table selection can use Source{[Item="Sales", Kind="Table"]}[Data].

5
Refresh the results

Select Home > Refresh Preview in Power Query Editor, then select Home > Close & Load. In Excel, select Data > Refresh All and check the loaded results.

Verify the source path and selected workbook object
Sheets and tables are different objects: A worksheet and an Excel table can have the same name but contain different data. Check both the Item and Kind values in the Navigation step.
Free Microsoft Office alternative

Work with Excel Workbooks in WPS Spreadsheets

WPS Office is a free, lightweight alternative with a familiar interface for opening and editing Excel workbooks. Its format compatibility helps you move everyday spreadsheet work to WPS, although it does not fix Microsoft Power Query connections.

Open and edit Microsoft Excel XLSX and XLS filesReview worksheet data in a familiar spreadsheet interfaceUse a free, lightweight office suite for everyday workMove compatible spreadsheet files between Excel and WPS
microsoft office alternative - wps office

Frequently Asked Questions

How do I tell whether Power Query is reading a sheet or a table?

In Power Query Editor, select the Navigation step under Applied Steps and inspect its formula. Kind="Sheet" selects a worksheet, while Kind="Table" selects an Excel table.

Where can I check the folder and file name used by the query?

In Excel, open Formulas > Name Manager and inspect the FolderPath and FileName named ranges. Then check the Source step in Power Query Editor to see how the query combines them.

Why does the preview look right before a merge but wrong afterward?

A merge can change the output depending on its matching columns and join type. In Applied Steps, select the steps before and after the merge, then inspect the merge settings.

How do I refresh both the query preview and the workbook output?

In Power Query Editor, select Home > Refresh Preview. Then select Home > Close & Load and use Data > Refresh All in Excel.