Solved

How to switch the source database and table of an existing PowerTable to a variable?

Started by Vivek D · 1 month, 1 week ago · 1 reply · 119 views
Vivek D Participant
1 month, 1 week ago

Is there a way to switch the database and the table itself for a given PowerTable to a variable after it has been created?

Scenario 1: A Power Table was created pointing to specific DB and table. Now a new DB has been created to replace the original DB and the table names have been changed too. I now want to switch the Power Table to this new DB and table.

Scenario 2: A Power Table was created pointing to specific DB and table in the Dev workspace. In order to ensure the PowerTable points to a Production table in Production workspace when deployed I want to switch it to a variable. Can I make that switch for an existing PowerTable?

1 Reply
Eric HoodLumel Staff
Fabric Plan Engagement Manager · Lumel Technologies · 1 month ago

Hi Vivek,

I responded to your other similar topic and wanted to cross post the response here.

We do not support changing the database once it is configured. The reason is that things like audit and approval history are tied to specific records in the database. If you change the database, then that history may become misleading or invalid.  We are exploring they ability to change the direct database connection to a variable, however, there could be limitations to that like only being able to select a variable that points to the existing database.

So, if you are creating a Plan item that you intend to deploy through deployment pipelines, then we recommend creating it initially using variables for the database and semantic models.

Now, if you want to explore taking a Plan item and making a new copy of it and deploying it as a new Plan item in either the existing or a different workspace, you could explore using the Items - REST API (Plan) | Microsoft Learn APIs to extract the current definition, make changes to it including the sources, and then deploy it as a new Plan item.

Viewing 1 replies (of 1 total)

Microsoft, Azure, Copilot, Excel, Fabric IQ, Microsoft Entra, Microsoft Fabric, Microsoft Teams, OneLake, Outlook, Power Automate, Power BI and SharePoint are trademarks of the Microsoft group of companies. IBCS is a registered trademark of IBCS Association. All other trademarks are the property of their respective owners.

This community is operated independently by Lumel. Nothing on this site constitutes a representation or warranty by Microsoft.