Oct 27 2021 09:18 PM - edited Oct 27 2021 09:24 PM
In Excel for Microsoft 365, I initially added a query to my data model. Then I changed it to load as "connection only". But it's still in Power Pivot, which doesn't let me delete it. How do I delete it from my data model? Thanks.
Oct 27 2021 09:28 PM
@rootsmusic When you chose "Connection only", did you also uncheck the box "Add this data to the data model"?
Oct 27 2021 09:30 PM
Oct 27 2021 09:52 PM
@rootsmusic That's odd. I've tried several scenario's. Adding tables to the DM via PQ, creating relationships and pivot tables from them. Now, you can't delete the tables directly in the DM. It comes up with a message that "the tables was created by a query. Adjust the query". So, I right-click on the query in Queries & Connections list, Load to... and uncheck the DM box. A warning is displayed indicating that there will might be a loss of data, but I can choose to delete and the table is removed from the DM.
Oct 28 2021 12:59 AM
Oct 28 2021 08:40 AM
Oct 28 2021 01:18 PM
To clarify,
are you trying to delete a query from the query navigator?
or
are you trying to delete a queried data set from the data model?
Oct 28 2021 01:22 PM - edited Oct 28 2021 01:25 PM
Solution@Yea_SoI was trying to delete the query from the data model (Power Pivot), but keep it as "connection only" in Power Query. I finally did so by renaming the "connection only" query and disconnecting its relationships. (So it seems to be a bug in Power Pivot when trying to delete a query that has active relationships.)
Oct 28 2021 01:22 PM - edited Oct 28 2021 01:25 PM
Solution@Yea_SoI was trying to delete the query from the data model (Power Pivot), but keep it as "connection only" in Power Query. I finally did so by renaming the "connection only" query and disconnecting its relationships. (So it seems to be a bug in Power Pivot when trying to delete a query that has active relationships.)