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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
ashi7upt
Frequent Visitor

Issue with Toggling Between Different Databases on the Same Server in Power BI Service

The issue with Toggling Between Different Databases on the Same Server in the Power BI Service

I have a Power BI report where users need the ability to toggle between different databases (DBs) located on a single server. The server name is fixed, but the database name will change based on user selection, with a default database selected initially.

  • Scenario: On the Power BI desktop, I can handle this by binding a parameter to a column that allows users to switch between different databases.
  • Problem: After publishing the report to the Power BI Service, I'm unable to dynamically change the connection string to update the database name based on user input.

Additional context:

  • My SQL user account has SELECT access to all the tables across all the databases on the server.
  • Each user should be able to select from his selected databases on the same server while using the published report.


Question: How can I enable users to switch between different databases on the same server after publishing the report to Power BI Service? Is there a way to dynamically change the database connection string based on user selection within Power BI Service?

1 ACCEPTED SOLUTION
v-jiewu-msft
Community Support
Community Support

Hi @ashi7upt ,

Based on the description, try to click on dataset and modify the parameters.

vjiewumsft_0-1726046903568.png

You can also view the following blog to learn more information.

Using the Power BI Service Parameters to change co... - Microsoft Fabric Community

 

Best Regards,

Wisdom Wu

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-jiewu-msft
Community Support
Community Support

Hi @ashi7upt ,

Based on the description, try to click on dataset and modify the parameters.

vjiewumsft_0-1726046903568.png

You can also view the following blog to learn more information.

Using the Power BI Service Parameters to change co... - Microsoft Fabric Community

 

Best Regards,

Wisdom Wu

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

arvindsingh802
Super User
Super User

Please refer to https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-dynamic-m-query-parameters#add-param... 


If this post helps, then please consider Accept it as the solution, Appreciate your Kudos!!
Proud to be a Super User!!

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Solution Authors