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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
thebigwhite
Helper II
Helper II

RLS Best Practice

Good afternoon, 

I am asking for an advice on what is the best approch concerning the RLS for a multi "Branch" scenario. 

Scenario: 

I have a model where there is a fact table and then there are other tables related to the fact tables with the Dimension. 

I have to set up a role where some users can see only some information of the fact table and the related dimension. 

In particular we have different Branches and one user must see only some information of the fact table and "some information" of the dimensions. The branch field is present in all the tables and used for creating the keys used among the tables.

 

Is it the best approach to create a role for each Branch? 

Is it the best approach create a table where the users are linked to the relative Branch and use this table to filter the roles? 

 

1 ACCEPTED SOLUTION
v-lionel-msft
Community Support
Community Support

Hi @thebigwhite ,

 

Try to create a model like this.

r3.PNG

Then create a role on the 'Branch table'.

r4.PNGr5.PNGr6.PNG

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-lionel-msft
Community Support
Community Support

Hi @thebigwhite ,

 

Try to create a model like this.

r3.PNG

Then create a role on the 'Branch table'.

r4.PNGr5.PNGr6.PNG

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

It's not just the creation of the roles that you need to think about. You also need to think about the rules for each role, and to which table(s) to apply these rules.

 

Ideally you have an RLS reference table that sits at the top of the hierarchy (outermost shell of star/snowflake). In that case you may be able to apply the rules just to this one table, and then the data model can do the rest of the work.

 

Worst case you have to apply the rules to every single table. Not cool.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.