Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Solved! Go to Solution.
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
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
80 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |