Forum Discussion
RLS setting Question
Hi Anonymous - To create a report in Power BI with Row-Level Security (RLS) control and another report without RLS restrictions within the same PBIX file, without duplicating the fact table, you can use measures and filters creatively.
attached the detailed steps, please follow and also sharing some resource please check
Row-level security (RLS) guidance in Power BI Desktop - Power BI | Microsoft Learn
- Anonymous1 year agoNot applicable
Thanks for your answer, this solution seems to inevitably copy the fact table, which will cause the file to remain very large❤️
- rajendraongole11 year agoSuper User
Hi Anonymous - You're absolutely right to aim for a solution that avoids duplicating the fact table and keeps the file size manageable.
Instead of relying on separate tables for restricted and unrestricted data, you can use DAX measures to dynamically control data visibility based on a toggle (eg. , slicer or parameters)
I hope this details helps. Thank you
- Anonymous1 year agoNot applicable
Hi Anonymous ,
According to your statement, I think your requirement is to create a report with two pages one is under RLS control and another is not.
As far as I know, if you add RLS in your data model, users in each role can see the corresponding data.
For example, if UserA in role1, then UserA could only see that RLS restricts the data that role1 can see. We couldn't let UserA see all data without RLS at the same time.
So create a new report without rls or add a duplicate fact table may be the workaround.
If you want to restrict specific people to see data and some other people could see all data, you can try to user UERPRINCIPALNAME() to configure dynamic RLS.
Dynamic Row Level Security with Power BI Made Simple - RADACAD
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.