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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

How to change Power BI live connection data source in power BI service with another live connection

Hi,

 

If a power BI dataset is connected Live to a report, In Power BI desktop we can change that datasource connection to other data source connection live connection with same data structure. But same feature is not available in power BI service. Please let me know if if is available.

 

For Example:

power BI dataset 'X_dev' is connected to report 'Y', I want to change data source in Y to  power BI dataset 'X_uat' or 'X_prod'. Currently i need to do this desktop manually. Is this feature available in Power BI service ? Is it Possible with power BI rest API ?

 

Thanks & Regards,

Mani 

 

 

5 REPLIES 5
Anonymous
Not applicable

I would recommend you to take a look at the topic update data source using Power BI rest API
Anonymous
Not applicable

Hi,

 

I am looking for some solution using Power BI rest API. but I don't see power BI data set as supported data source.

Anonymous
Not applicable

I would recommend to take a look at the following aricle

Datasets - Update Datasource using Power BI Rest API 

 

Use the following picece of code in JSON Body field

 

    {
    "updateDetails": [
      {
        "datasourceSelector": {
          "datasourceType": "AnalysisServices",
          "connectionDetails": {
            "server": "DATA SOURCE IN CURRENT REPORT",
            "database": "CUBE NAME IN CURRENT REPORT"
          }
        },
        "connectionDetails": {
          "server": "TARGET SERVER NAME",
          "database": "TARGET CUBE NAME"
        }
      }
    ]
  }
Tad17
Solution Sage
Solution Sage

Changing the data source has to be done in Power BI Desktop and then republished to the service. The only time you can mess with data sources anywhere else is through Power BI Premium.

Anonymous
Not applicable

Hi,

 

I am trying to automate  deployment  process using Azure Devops. So I need  to do it using REST API.

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.