Power Query Problems

Fix Excel Microsoft Query Crashes When Creating PivotTables

Anum MushtaqAnum Mushtaq Nov 13, 2026 868 views

Question details

The user needs to create a PivotTable from data on multiple worksheets without Microsoft Query crashing.

Fix Excel Microsoft Query Crashes When Creating PivotTables
Product
Microsoft Excel and Microsoft Query
Device & OS
not provided
Scenario
Creating a report from multiple worksheets in the same workbook.
Observed behavior
Microsoft Query crashes during PivotTable creation, including in new workbooks with minimal data, although the process previously worked.
Before you start

Check that each worksheet has a header row and that corresponding columns use consistent names. The append method below works best when the worksheets have the same column structure.

Solution 1Recommended

Combine worksheets with Power Query and create a PivotTable

Use this approach to consolidate tables from worksheets in the same workbook without relying on Microsoft Query.

1
Convert each range to a table

On each source worksheet, select the data, choose Insert > Table, and confirm that the table has headers.

2
Create a query for each table

Select a cell in the first table and choose Data > From Table/Range. In Power Query Editor, choose Home > Close & Load > Close & Load To, then select Only Create Connection. Repeat for each source table.

3
Append the queries

Open a query from Data > Queries & Connections. In Power Query Editor, choose Home > Append Queries > Append Queries as New, select the table queries, and confirm.

4
Load the combined data

Choose Home > Close & Load > Close & Load To and load the appended query to a table. You can also select Add this data to the Data Model if that option is available.

5
Create the PivotTable

Select a cell in the loaded table and choose Insert > PivotTable. If you loaded the data to the Data Model, select the Data Model as the PivotTable source instead.

Combine worksheets with Power Query and create a PivotTable
Matching columns: Power Query appends columns by name. Different names create separate columns, so rename corresponding columns before appending if necessary.
Free Microsoft Office alternative

Create spreadsheet reports with WPS Office

WPS Office is a free, lightweight Office alternative with a familiar interface. Open compatible Excel workbooks and continue working on spreadsheet reports with an easier transition.

Create PivotTables to summarize spreadsheet dataOpen and edit Microsoft Excel XLSX and XLS filesUse a familiar spreadsheet interfaceWork with a free, lightweight Office suite
microsoft office alternative - wps office

Frequently Asked Questions

Can Power Query combine worksheets from the same workbook?

Yes. Convert each worksheet range to a table, use Data > From Table/Range to create a query for each one, and append the queries in Power Query Editor.

Why are some columns separate after I append the worksheets?

Power Query matches appended columns by name. Check the headers and rename corresponding columns in Power Query Editor before appending them.

How do I refresh the PivotTable after the source data changes?

Choose Data > Refresh All to refresh the queries and PivotTable. Make sure new rows are included in the source Excel tables.

What should I check for an unrecognized database format error?

Verify that the source workbook opens in Excel and that its extension matches its format. Then check the source path and the Excel ODBC driver used by the connection.

Does WPS Office fix a Microsoft Query crash in Excel?

No. WPS Office is an alternative for working with compatible spreadsheets; it does not repair Microsoft Query or Excel's ODBC connections.