cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cuongle Member
Member

Change data source for the whole pbix file

Assume I already have pbix file using "Import Data" approach which is imported around 50 tables from Database 1. Now I want to change Data source of this pbix file to Database 2 which is exactly the same database schema.

 

I see one way to open Adance Editor each table to change the Source, this way works but I have to manually change Source 50 times for 50 tables. Is there any other approaches that I am able to change Source in one time for every tables.

 

 

Capture.PNG

 

1 ACCEPTED SOLUTION

Accepted Solutions
asocorro Member
Member

Re: Change data source for the whole pbix file

The technique I know only works prospectively.  It is explained by Chris Webb here, and involves declaring the elements of the data source as a separate M query: http://blog.crossjoin.co.uk/2015/11/09/avoiding-duplication-of-database-connection-information-in-po...

 

Connect with me in LinkedIn: https://pr.linkedin.com/in/adolfosocorro
Follow me on Twitter: https://twitter.com/AdolfoSocorro

View solution in original post

5 REPLIES 5
asocorro Member
Member

Re: Change data source for the whole pbix file

The technique I know only works prospectively.  It is explained by Chris Webb here, and involves declaring the elements of the data source as a separate M query: http://blog.crossjoin.co.uk/2015/11/09/avoiding-duplication-of-database-connection-information-in-po...

 

Connect with me in LinkedIn: https://pr.linkedin.com/in/adolfosocorro
Follow me on Twitter: https://twitter.com/AdolfoSocorro

View solution in original post

cuongle Member
Member

Re: Change data source for the whole pbix file

Awesome! Thanks a lot

cuongle Member
Member

Re: Change data source for the whole pbix file

@asocorro This way does not work when we publish to PowerBI service and do data refreash over enterprise gateway.

asocorro Member
Member

Re: Change data source for the whole pbix file

What kind of error are you getting?

Connect with me in LinkedIn: https://pr.linkedin.com/in/adolfosocorro
Follow me on Twitter: https://twitter.com/AdolfoSocorro
Highlighted
odegarun Frequent Visitor
Frequent Visitor

Re: Change data source for the whole pbix file

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 54 members 1,146 guests
Please welcome our newest community members: