Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi everyone, I want to set up a way to be able to have users within the power bi web app to be able to change the database source directly from their end. I assume this would be through some sort of direct real time streaming to an internal SQL database. We have multiple databases housing different data for different clients. Our team needs to be able to switch between each database within the SQL server to be able to see whichever client they are working on. I would like it to be all done using the power bi web application and not done individually on each of their power bi desktop. Please let me know if there is a solution on power bi for this.
Solved! Go to Solution.
You can parameterize the server/database connection but after changing that value, the model would need to be refreshed and everything about the structure of the tables would need to be identical.
I would think it would be easier for you to set up the model to include all the data from all databases and then add a slicer to the report to only show what is required.
Have I solved your problem? Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;). |
If you found this post helpful, please give Kudos. It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen. If you find my signature vaguely amusing, please give Kudos. | Proud to be a Super User! |
The only way passing a parameter would work for users consuming the report is if you were using direct query and that's not a good idea.
My thinking around pulling all the data in would be using Power Query to combine the data from all databases.
so queries,
stage_databaseA
stage_databaseB etc.
combined_databases
In the combined query you can ensure data exists for filtering via slicer or RLS.
Have I solved your problem? Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;). |
If you found this post helpful, please give Kudos. It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen. If you find my signature vaguely amusing, please give Kudos. | Proud to be a Super User! |
You can parameterize the server/database connection but after changing that value, the model would need to be refreshed and everything about the structure of the tables would need to be identical.
I would think it would be easier for you to set up the model to include all the data from all databases and then add a slicer to the report to only show what is required.
Have I solved your problem? Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;). |
If you found this post helpful, please give Kudos. It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen. If you find my signature vaguely amusing, please give Kudos. | Proud to be a Super User! |
Yes I agree with you, that is our long term plan to have one database that stores everything. The paramater worked after I set up a gateway on my computer. Do you know if it is possible for the end user to update the parameter if I share the power bi report with them?
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
7 | |
6 | |
3 | |
2 | |
2 |