cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

power bi desktop

Dear Team,

 

We are using Power BI Desktop (Feb 2018) version with Direct Query mode and connected to Azure SQL database. 

 

While changing the environment from DEV to QA or QA to PROD, we have to open the application and change the connection and then Power BI takes a lot of time of refresh all the tables (we have approx. 80 tables). 

 

Is there any way by which we can automate this and without open the application, can change the connection. Eg. like VBScript file, PowerShell.

 

Please suggest.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Microsoft v-yulgu-msft
Microsoft

Re: power bi desktop

Hi @Anonymous,

 

As of now, Power BI does not support to update the datasource connection programmatically without openong the .pbix file. Here is an idea, you can click to vote it up.

 

To workaround this requirement, you can store your connection string in a config file, then write a custom function to analysis this file. Each time you refresh the report, it will get the newest data via new connection string. Please refer to v-shex-msft's suggestion.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
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

1 REPLY 1
Highlighted
Microsoft v-yulgu-msft
Microsoft

Re: power bi desktop

Hi @Anonymous,

 

As of now, Power BI does not support to update the datasource connection programmatically without openong the .pbix file. Here is an idea, you can click to vote it up.

 

To workaround this requirement, you can store your connection string in a config file, then write a custom function to analysis this file. Each time you refresh the report, it will get the newest data via new connection string. Please refer to v-shex-msft's suggestion.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
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

Helpful resources

Announcements
New Kudos Received Badges Coming

New Kudos Received Badges Coming

Kudos to you if you earned one of these! Check your inbox for a notification.

Microsoft Implementation for Communities Wins Award

Microsoft Implementation for Communities Wins Award

Learn about the award-winning innovation that was implemented across Microsoft’s Business Applications Communities.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Kudoed Authors (Last 30 Days)
Users online (1,762)