This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 23 | |
| 22 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 64 | |
| 41 | |
| 27 | |
| 22 | |
| 20 |