Remove a Connection-Only Query from the Excel Data Model
Question details
Remove a query's existing table from the Excel Data Model while keeping the query as a connection only.

- Product
- Microsoft Excel Power Query and Power Pivot
- Device & OS
- not provided
- Scenario
- A query was changed to a connection-only load, but its previously loaded table remains in the Data Model.
- Observed behavior
- The table may remain in Power Pivot after the load setting changes, potentially because of relationships or a synchronization issue.
Identify the query and its corresponding Data Model table in Data > Queries & Connections and Power Pivot > Manage. Check whether PivotTables, measures, or relationships depend on the table, because removing it can affect them.
Clear the Data Model load option and remove dependent relationships
Use this method to keep the query as a connection while removing its existing Data Model table.
In Excel, select Data > Queries & Connections, right-click the query, and choose Load To.
In the Import Data dialog, select Only Create Connection, clear Add this data to the Data Model, and select OK.
If the table remains, open Data > Relationships, select each relationship that uses the table, and choose Delete. Confirm each deletion.
Open Power Pivot > Manage. If the table is still present, right-click its table tab and select Delete. Confirm the removal, then check that the query still appears under Data > Queries & Connections.

Rename and refresh a query that remains stuck in the Data Model
Try this if the table remains after you clear the load option and remove its relationships.
Work with Excel Workbooks in WPS Office
WPS Office is a free, lightweight alternative for everyday spreadsheet work. Its familiar interface and Excel format compatibility make it easy to move existing workbooks, although it does not fix Excel Power Pivot Data Model issues.

Frequently Asked Questions
Why is my connection-only query still in the Data Model?
Only Create Connection and Add this data to the Data Model are separate settings. Open Data > Queries & Connections, right-click the query, and choose Load To to check both. An existing model table or its relationships may also need to be removed.
How do I find relationships that use the table?
Select Data > Relationships and review the listed tables and related tables. Select a relationship that uses the table and choose Delete if it is no longer needed.
Will deleting the Power Pivot table delete the query?
Removing the table from Power Pivot is intended to remove the model table, not the connection-only query. Check Data > Queries & Connections afterward to confirm that the query is still listed.
What happens to PivotTables that use the model table?
PivotTables, measures, and relationships that depend on the table may stop working or lose data. Identify those dependencies before deleting the table or its relationships.




