Fix Excel Power Query Relative File and Table Refresh
Question details
The user needs a Power Query connection to read current data from the intended file and worksheet or table.

- 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.
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.
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.
In Excel, select Data > Queries & Connections, then double-click the affected query to open Power Query Editor.
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.
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.
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].
Select Home > Refresh Preview in Power Query Editor, then select Home > Close & Load. In Excel, select Data > Refresh All and check the loaded results.

Inspect transformations and data source settings
Use this if the correct file and object are selected but the final output still looks unexpected.
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.

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.




