Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.