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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Urid1969
Helper I
Helper I

Dynamically change data source

Hello

We are about to develop report to the five clients that each has its own SQL Server (5 counties) with the diff database name BUT identical schema. We have a table that contains the server name , db name ,login and pass for each client , But question is we need to have a content pack for them  to be publlish and they need to lunch a report and get the data obviously related to the client ... Is that possible to  implement such logic in Services?  Can someone share some examples? Thank you

1 ACCEPTED SOLUTION

Not sure you can have the users select the server and it change dynamically. If your using the cloud version then you cannot change parameters on a published report.

 

The only way that would work is if you had 5 sets of queries for each of the server/dbs that are all merged and then filtered by the users or using row level security.

 

The other option is a sort of menu that links them to the relevant dashboard based on the selection.

 

Download the SSIS Dashboard for my example and look at the queries for an example of a parameterised Server and db.

 

View solution in original post

3 REPLIES 3
stretcharm
Memorable Member
Memorable Member

HI,

 

I use parameters for all my connections. You can see an example of parameterised queries from different sources

in my SSIS Dashboard.

 

http://community.powerbi.com/t5/Data-Stories-Gallery/SSIS-Catalog-DB-Dashboard/td-p/244677

 

Note changing server or database will need the security confirmed again.

I tend to have a test version then when it's complete I save as a template.

I then create a new version with the parameters changed from the template for each of our SSIS Servers. Similarily you can publish a new version to each workspace/content pack in the cloud.

 

 

Hi

I need to parameterize   server name and the db name, can you show some example?  We would want  the users to choose the server name and dbs name  but just lunch the dash and get related to them data/report

Not sure you can have the users select the server and it change dynamically. If your using the cloud version then you cannot change parameters on a published report.

 

The only way that would work is if you had 5 sets of queries for each of the server/dbs that are all merged and then filtered by the users or using row level security.

 

The other option is a sort of menu that links them to the relevant dashboard based on the selection.

 

Download the SSIS Dashboard for my example and look at the queries for an example of a parameterised Server and db.

 

Helpful resources

Announcements
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.