Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
Hi,
We have a report with 2 tabs Overview, Department. RLS was implemented so that user logged in can only see their correspodning department data, however few users need to see all department data on Overview page. We have a table filter DAX in manage roles that filters out the user department. Can this filter be ignored at individual page level to get the desired results.
Ex: User sam belongs to department A and with current RLS setup he can only see A data on both tabs, can we ignore this filrer on Overview page, so sam can also view other departments data? but only see A department data on Department page. Both pages are populated from same table.columns / measures.
Thanks in advance for your help !
Solved! Go to Solution.
Hi @kumsha1 ,
You cant ignore the RLS,but you can duplicate the table which acts like you can set 2 RLS for one report.It is a workaround.Steps see below:
Duplicate your report,then create the visuals you need.Set RLS in page1.Then hide the deplicated report.
See an example below:
I create a table and a visual as below:
Then I duplicate the table using below dax expression:
Table 2 = 'Table'
And set a RLS in page 1:
While testing you will see:
page 1
page 2
For the related .pbix file,pls click here.
Hi @kumsha1 ,
You cant ignore the RLS,but you can duplicate the table which acts like you can set 2 RLS for one report.It is a workaround.Steps see below:
Duplicate your report,then create the visuals you need.Set RLS in page1.Then hide the deplicated report.
See an example below:
I create a table and a visual as below:
Then I duplicate the table using below dax expression:
Table 2 = 'Table'
And set a RLS in page 1:
While testing you will see:
page 1
page 2
For the related .pbix file,pls click here.
Hi Kelly,
I have tried this option and it works fine, however just wanted to check here if there is any oher option just to ignore the RLS at run-time. Most probably we will end up implemeting this option only. Thanks for your reply 🙂
Cheers,
Hi @kumsha1 ,
Sorry to say that RLS acts like a report-level filter,it cant be ignored once it is running and it will applied in all pages.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
sounds like what i am trying to do, can you pls suggest what kind of filter will suffice the requirement in this case?. Thanks.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
User | Count |
---|---|
77 | |
70 | |
68 | |
53 | |
48 |
User | Count |
---|---|
45 | |
38 | |
35 | |
31 | |
28 |