The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi guys,
I have a complicated situation with RLS. I have 2 pages:
- Page 1 everyone can see all the data (Overview our department).
- In Page 2 the user is allowed to see only his data. (this is easy to fix namely Email = USERPRINCIPALENAME() )
But the thing is when I go to Page 1 then I see only the data of mine, but I need to see all the data of my department. How can I use 2 different RLS?
Is there any solution for this situation?
Thanks in advance!
Solved! Go to Solution.
@Anonymous when you apply RLS data will automatically get filter according the Row level restrictions placed. You can't restict access to one page as RLS is applied on the dataset.
However, there are cases where we may need to overried RLS in such cases you can either create seperate tables if possible. Else best thing would be to create a measure that is not impacted by RLS.
below are some links can guide you in the right direction
https://community.powerbi.com/t5/Desktop/RLS-creating-a-measure-to-overide-RLS/td-p/37019
Proud to be a Super User!
Hi @Anonymous
I wonder if the data from page1 and page2 are related ? If it has relationships between different data, it will definitely be affected by filters .And as per the online document Row-level security, the RLS filter the dataset directly.
If it possible , you can create a separate table in page1, without establishing any relationship, then you will not be affected by RLS.
More info about RLS can refer to the link :
https://docs.microsoft.com/en-us/power-bi/guidance/relationships-bidirectional-filtering
https://docs.microsoft.com/en-us/power-bi/guidance/rls-guidance
Best Regards
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Sorry, but there is no clear reply!
Hi Guys,
Sorry for the late response! But the solutions to duplicate the datamodel does works thanks!
Hi @Anonymous
I wonder if the data from page1 and page2 are related ? If it has relationships between different data, it will definitely be affected by filters .And as per the online document Row-level security, the RLS filter the dataset directly.
If it possible , you can create a separate table in page1, without establishing any relationship, then you will not be affected by RLS.
More info about RLS can refer to the link :
https://docs.microsoft.com/en-us/power-bi/guidance/relationships-bidirectional-filtering
https://docs.microsoft.com/en-us/power-bi/guidance/rls-guidance
Best Regards
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous when you apply RLS data will automatically get filter according the Row level restrictions placed. You can't restict access to one page as RLS is applied on the dataset.
However, there are cases where we may need to overried RLS in such cases you can either create seperate tables if possible. Else best thing would be to create a measure that is not impacted by RLS.
below are some links can guide you in the right direction
https://community.powerbi.com/t5/Desktop/RLS-creating-a-measure-to-overide-RLS/td-p/37019
Proud to be a Super User!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
80 | |
75 | |
52 | |
50 |
User | Count |
---|---|
133 | |
124 | |
78 | |
64 | |
61 |