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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
paraparam_1972
New Member

Connect Dash Board report to different Database based on Parameter Value

I am new to Power BI. We have multiple databases. The user will pass the database name through a parameter. The dashboard report needs to connect to the particular database and fetch the data. The dashboard reports are launched into the Power BI service. Please suggest the better way to approach this.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @paraparam_1972,

Did you mean to use the query parameter or control the connection string? If that is the case, you can refer to the following blog:

Using the Power BI Service Parameters to change connection strings (To possibly change between Dev  

Notice: these datasources should has same structure or they will return the error for datasource table key feild not match.

Regards,

Xiaoxin Sheng

View solution in original post

4 REPLIES 4
paraparam_1972
New Member

Hi Xiaoxin Sheng, 

Can we pass a parameter based on login in our mobile app and render the dashboard without making changes in the Power BI Service  In other words, should the dashboard automatically fetch data from different databases based on the parameter with out making changes in the connection string

 

 

Anonymous
Not applicable

HI @paraparam_1972,

Perhaps you can take a look at the following document about power bi rest api to update parameters:
Datasets - Update Parameters In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn

BTW, you can also consider getting these data source records to power bi side, remark the records source and bind users to the source field.

After these steps, you can create a RLS role based on current username and filter on these records.

Row-level security (RLS) with Power BI - Microsoft Fabric | Microsoft Learn

Regards,

Xiaoxin Sheng

paraparam_1972
New Member

Thanks for the reply Xiaoxin Sheng. Let me check and revert to you if I have any issue. Thanks alot.

Anonymous
Not applicable

HI @paraparam_1972,

Did you mean to use the query parameter or control the connection string? If that is the case, you can refer to the following blog:

Using the Power BI Service Parameters to change connection strings (To possibly change between Dev  

Notice: these datasources should has same structure or they will return the error for datasource table key feild not match.

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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