Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I am building a Power BI report connected to a single SQL Server (SSMS) that hosts multiple databases, where each database corresponds to a different product company (PC).
Constraint: I do not want to load data from all PCs/databases at once, because each DB is large and only one should be queried at a time.
The core question:
Is it possible in Power BI to dynamically switch the DirectQuery database connection at runtime using a slicer?
If not, what would be the best alternative approach to achieve this requirement without preloading all databases into the model?
Solved! Go to Solution.
Unforntunately, what you're asking for isn't possible. The query editor affects the designer but it isn't the other way around - slicer selection doesn't get passed on the the query editorr.
Unforntunately, what you're asking for isn't possible. The query editor affects the designer but it isn't the other way around - slicer selection doesn't get passed on the the query editorr.
Thank you for the reply..🙂
Thank you for the reply...🙂
@jaineshp Thanks for the super qucik reply🙂. That means I still have to load all the data from the source..
Hi @shashi_bagale ,
I would also take a moment to thank @jaineshp , for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.
Hi @shashi_bagale ,
I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you
Hi @shashi_bagale ,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions
Hey @v-sshirivolu,
Thank you for the kind recognition - always happy to contribute to our community's success!
Best Regards,
Jainesh Poojara | Power BI Developer
Yes, that's the only way!
Best regards,
Jainesh Poojara / Power BI Developer
Hey @shashi_bagale,
No, Power BI cannot dynamically switch DirectQuery connections at runtime using slicers. The data source connections are fixed at report design time.
Alternate Option: Multiple Report Approach
Fixed? ✓ Mark it • Share it • Help others!
Best Regards,
Jainesh Poojara | Power BI Developer