Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
SwapnilMahajan1
New Member

Changing Power BI Data source

Hello everyone,

During an interview, I encountered this question and I'm looking for an answer to it. Despite conducting a Google search, I haven't been able to find a response that fully satisfies my query.

The question is:

Imagine we've created 150 dashboards using an on-premises data source. Now, the company has shifted to a cloud-based database and wants to transition all 150 reports to use the cloud-based data source automatically. They wish to avoid the manual process of opening each report to update the data source. Is there a method to automate this process?

2 REPLIES 2
vanessafvg
Super User
Super User

i guess because you are asking this retrospectively its after the fact but  if you parameterize your connections from the get go, so not post the fact then changing  the environment variable should allow you to do this,  (in theory, of course theory isn't always that simple, specially cos on prem to cloud which may have differences)

 

the other way you could possibly also do it is via the xmla point (which you can only use if you have premium)

although I am not sure how you would loop through each connection.  but changing it in tabular editor would be easier.  

 

https://powerbi.microsoft.com/cs-cz/blog/using-xmla-endpoints-to-change-data-sources-in-a-power-bi-d...

 

i think what they probably referring to is using the Rest API and doing it via the api

https://learn.microsoft.com/en-gb/rest/api/power-bi/gateways/update-datasource

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Idrissshatila
Super User
Super User

Hello @SwapnilMahajan1 ,

 

It should be changes manually in every power bi report so it would read from the new source, because this should be done in power bi desktop.

 

unless, all the reports are reading from a power bi dataset that is published to service, then its enough to change this one only and the change will reflect to other reports reading from it.

https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-report-lifecycle-datasets

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin
Vote For my Idea💡

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.