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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
maxymibus
Frequent Visitor

Different dataset and dashboards according to different user credentials

Hello,

I am working in a project where I have suggested the use of PowerBI:)

 

The requirements are the following:

1) the created dashboard should load data from different Databases source based on the logged in User. Each User has its own Database. Should I create a unique dashboard for each user? How Can i configure it automatically for x number users? 

2)Some of the created dashboards need to load data from the same DataSet but they should be able to see only their own data, so it is also based on the logged in user

 

I am not sure I can achieve this with RLS.

 
The Databases have the same datamodel, so basically the dashboard will continue to work based on the same data. How can this be achieved? Is there any good solution architecture I should consider?

Thanks for your help.

1 ACCEPTED SOLUTION

For #1, no I do not know if there is a way to change that via the API, my guess is going to be no.

 

For #2, yes, you understand the concept correctly.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

You could explore parameters and modifying the data connection source based upon the user name. However, I think that RLS is the correct way to go. You could bring in all of the data from all of the databases into a single model and use RLS. You would create one set of reports and one dashboard for all users and use RLS to make sure that they only see their data. It is all about how you setup the roles and rules in RLS.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Hi smoupre,

Thank you. It sounds reasonable. 

 

1)Do you know if there is an API to change the connection string source of a dashboard/report which is embedded? 

2)As far as I understand, I should import all the databases into one since they share the same model and let the dashboard point to it and use RLS, I like it, even if the single model requires a bit of more work since the single databases might change and be out of sync. Did I understand your answer correctly?

 

For #1, no I do not know if there is a way to change that via the API, my guess is going to be no.

 

For #2, yes, you understand the concept correctly.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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