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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
GustavoSouza
Frequent Visitor

PowerBi SQL Sever

Hi, could someone help me? I would like to connect to an SQL database, however, would I like to be able to change that database on the back end? Or instead of connecting to the bank indicating the bank name, connect using a connection string (from web.config). Any tips? 

 

Is it possible for the same PowerBi to be used with more than one database? WebConfig bank.

 

abc.png

 

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @GustavoSouza ,

1.You can try to create a parameter in Query Editor to solve your database name, when you connect to data source, just transfer the value in the parameter to connect

new parameter.pngparameter.pngdatabase parameter.png

 

2.You can use more than one databases in the same power bi if the connection mode is Import or Direct Query.

 

Best Regards,

Yingjie Li

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yingjl
Community Support
Community Support

Hi @GustavoSouza ,

1.You can try to create a parameter in Query Editor to solve your database name, when you connect to data source, just transfer the value in the parameter to connect

new parameter.pngparameter.pngdatabase parameter.png

 

2.You can use more than one databases in the same power bi if the connection mode is Import or Direct Query.

 

Best Regards,

Yingjie Li

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

Hi, thank you very much for responding. I haven't had time to test yet, but as soon as I get it, I'll leave feedback here.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.