Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
campelliann
Post Patron
Post Patron

Row Level Security - best approach?

Hi there,

 

So I have this situation where I will have 10-20 roles to manage in PowerBI.  There will be 10 tables or so to filter for each role and I am not able to easily create a Single "Role Table" that spreads the filter across the model without creating ambiguity.  I have thought on these possibilities:

 

1) Doing "manual" RLS creating the roles with the filters in the standard way.

2) Creating various Role Tables in the model, to minimize the number of Tables I ll have to filter in the modeling/RLS section

3) I also thought something of creating one role, and with SWITCH/selectedValue on email measure, I would do the filter. SWitch( true() , mail = john@complany, "value1", etc.). Dont know if this would be bad in terms of performance though..
Thanks!

2 REPLIES 2
Anonymous
Not applicable

Hi @campelliann,

In fact, RLS and filters work on different levels, you can't use the selection from the slicer to dynamic effect the RLS.

Notice: the data level of power bi(from parent to child level)

Database(external) -> query table(query, custom function, query parameters) -> data model table(table, calculate column/table,RLS) -> data view with virtual tables(measure, visual, filter, slicer)

Regards,

Xiaoxin Sheng

lbendlin
Super User
Super User

Keep in mind that you can have multiple RLS rules for the same person. More permissive rules will override more restrictive rules.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.