Forum Discussion
Different RLS-Criterias on different report sites
Hello,
in my current project i am trying to set different RLS-criterias on different report pages. The goal is to get a Dashboard where i have an Overview-site with no restrictions and another site where the same table, that is used in the Overview-site, is restricted. So when a User switches to the Overview-site his RLS-role changes and when he switches to the other site, his RLS-role changes again. The following picture somehow shows what i am trying to do.
Is there a way to switch the RLS-Roles of users depending on the report-page they are using at the moment ?
Kind regards
Marc
MarcOhm what is your source? Let's if I have to do it, on the overview page I show sales by year (for example) and I have SQL as my source. I will create a view in SQL which groups sales by year and just visualize it on the overview page, it will not have a performance impact but again this is a simple example, maybe you have bit of complex requirements. End of the day this is the only solution available to you, maybe you need to review your existing model why it is running slow.
✨ Follow us on LinkedIn and to our YouTube channel
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
6 Replies
- amitchandakSuper User
MarcOhm , I doubt that. Maybe you duplicate the table, one which is secured and one which is not
- MarcOhmNew Member
amitchandak, thanks for you answer. I have already thought of that option but the table is kinda big in size so just duplicating it would be very inefficent. Because of the size, PowerBI is already working relatively slow...
- parry2kSuper User
MarcOhm for overview page, create a aggregated table that is not effected by the RLS and that will get you what you are looking for.
✨ Follow us on LinkedIn and to our YouTube channel
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
- MarcOhmNew Member
parry2k, thanks for your answer. So you mean i should make a new table with the data used on the Overview-page an not restrict it ? The point is, that my table is relatively big and PowerBI is already working slow. A new table would solve the problem but would make the dashboard unsuable. Is there a way without a new table ?
- parry2kSuper User
MarcOhm as I mentioned pre-aggregate based on what you want to show on the overview table rather than loading to the lowes granularity.
✨ Follow us on LinkedIn and to our YouTube channel
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
- parry2kSuper User
MarcOhm what is your source? Let's if I have to do it, on the overview page I show sales by year (for example) and I have SQL as my source. I will create a view in SQL which groups sales by year and just visualize it on the overview page, it will not have a performance impact but again this is a simple example, maybe you have bit of complex requirements. End of the day this is the only solution available to you, maybe you need to review your existing model why it is running slow.
✨ Follow us on LinkedIn and to our YouTube channel
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!