Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Solved! Go to Solution.
Actually, I managed to get my desired result via the API by using https://api.powerbi.com/v1.0/myorg/groups/{{group_id}}/datasets/{{dataset_id}}//Default.UpdateDatasources and updating the server to point to the other one.
@Anonymous,
Please check that if the server name and database name of the SQL server data source are same in the PBIX file and in G2 gateway.
You can post a screenshot about data sources of Power BI Desktop and G2 gateway here for us to analyze. In Power BI Desktop, please go to File -> Options and settings ->Data source settings to check all the data sources of the dataset,
Regards,
Lydia
Hi,
I think my understanding of gateways was wrong. I thought it was possible to switch between (different) datasets by selecting another gateway, but now I see that to switch between gateways, they must point to the same server/database.
Is that correct?
Then, How can I solve my initial problem: using the same set of repports (pbix file) multiple times for different databases? For example, if I have a base file that I want to use for each of my clients (each one in its own workspace). I tried to duplicate/connect to the new DB/delete old table and rename new ones to match, but it gets very time consumming as the number of tables increase.
@Anonymous,
Another option is to define database/table parameters in your PBIX file and create a Power BI template.
https://powerbi.microsoft.com/en-us/blog/deep-dive-into-query-parameters-and-power-bi-templates/
Regards,
Lydia
Thanks Lydia, I will look into this!
Actually, I managed to get my desired result via the API by using https://api.powerbi.com/v1.0/myorg/groups/{{group_id}}/datasets/{{dataset_id}}//Default.UpdateDatasources and updating the server to point to the other one.
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 11 | |
| 11 | |
| 5 | |
| 4 | |
| 3 |