This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
I have several reports connected to the development databases, each with multiple data sources.
Currently, teams waste a lot of time redirecting connections to the production environment.
I'd like to know if there is any way to create a configuration file (or something similar) with production connections to import into reports and automatically connect to production?
Thanks.
Solved! Go to Solution.
Hi @Keny ,
In Power BI, you can streamline switching data sources between development and production environments by using parameters and configuration files. Here’s a summary of the steps:
Create Parameters: Define parameters for parts of your data source connection that change (e.g., server name, database name).
Use Parameters in Queries: Modify your data source connections to use these parameters in Power Query Editor.
Create a Configuration File: Make a file (e.g., Excel or JSON) that contains different environment configurations.
Switch Environments Using Parameters: Load the appropriate environment settings from the configuration file into the parameters.
Automate Parameter Updates: Use Power Query M code to dynamically update parameters based on the selected environment.
https://learn.microsoft.com/en-us/power-query/power-query-query-parameters
Hi @Keny ,
In Power BI, you can streamline switching data sources between development and production environments by using parameters and configuration files. Here’s a summary of the steps:
Create Parameters: Define parameters for parts of your data source connection that change (e.g., server name, database name).
Use Parameters in Queries: Modify your data source connections to use these parameters in Power Query Editor.
Create a Configuration File: Make a file (e.g., Excel or JSON) that contains different environment configurations.
Switch Environments Using Parameters: Load the appropriate environment settings from the configuration file into the parameters.
Automate Parameter Updates: Use Power Query M code to dynamically update parameters based on the selected environment.
https://learn.microsoft.com/en-us/power-query/power-query-query-parameters
Unfortunately, there is no easy way to change the data source to power BI reports as of now without Fabric subscription.
If both your Test and Production workspaces are assigned a fabric capacity, you can create a deployment pipeline in Power BI service.
It lets you change data sources and parameters for each stage of deployment.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 25 | |
| 23 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 50 | |
| 30 | |
| 23 | |
| 23 |