Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
samnay
Frequent Visitor

dynamic connexion to sql server

Hello All,

I have a requirement that i can not fixe.
Actually i want to build the same report for different sources. Is there any way to do it dynamically ??

The purpose is to do it by a code. Once trigered  the power bi report will take into account a specific data base ...
Thanks in advance,
Sara

1 REPLY 1
Michal_cwiok
Resolver II
Resolver II

If I understood you correctly, the answer is "to some extent". You have to use parameters and templates. However, I do not know if this can be done by code. We would require more information to see.

Let me know, if this answers your question. Blog post and a video.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.