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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors