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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
PbiCeo
Helper II
Helper II

How to replace dataset without changing report URL

Hello everyone.

Could you please give me advice?
I've got a report published using Analysis Services Live Connection.
I want to change it to import without changing report URL, so I created a new report with import and renamed PBIX same as the exisitng published report of LC and then published it to Service.
But got an error saying try later or raize a support ticket.

I think, it will be resolved with PQ code.

Any idea please?

Thanks in advance,

Vladi

1 ACCEPTED SOLUTION
v-diye-msft
Community Support
Community Support

Hi @PbiCeo 

 

API could do this.  You can refer to the official document :

https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/updatedatasources 

But please note that:

Important:

  • The original datasource and the new datasource must have the exact same schema.
  • For cached models, the dataset must be refreshed to get the data from the new data sources. If you're not using enhanced dataset metadata, wait 30 minutes for the update datasources operation to complete before refreshing.

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

View solution in original post

2 REPLIES 2
v-diye-msft
Community Support
Community Support

Hi @PbiCeo 

 

API could do this.  You can refer to the official document :

https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/updatedatasources 

But please note that:

Important:

  • The original datasource and the new datasource must have the exact same schema.
  • For cached models, the dataset must be refreshed to get the data from the new data sources. If you're not using enhanced dataset metadata, wait 30 minutes for the update datasources operation to complete before refreshing.

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
amitchandak
Super User
Super User

@PbiCeo , Try if this can help

https://radacad.com/change-the-source-of-power-bi-datasets-dynamically-using-power-query-parameters

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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