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
poojag820
Helper I
Helper I

Two RLS on same table

I have 2 sheets in one report. 

 

Sheet 1 is built entirely from table A. 

Sheet 2 is built from table A and table B. ( tabular view with metrics combined from table A and B)

 

Now the requirement is when user 1 logs in and go to sheet 1, he should be able to see data corresponding to specific country and Unit 1 and when same user 1 go to sheet 2, then he should be able to see data corresponding to specific country and Unit 2. 

 

I am using composite key for storing data corresponding to users like User 1 - composite key (country&Unit1) for sheet 1

and User 1 - composite Key (country&Unit2) for sheet 2. 

 

Challenge here is that how do I apply two RLS on same table. 

 

Any help is much appreciated. 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @poojag820 

 

Thank you very much lbendlin for your prompt reply. Allow me to share something.

 

“TableA”

vnuocmsft_6-1728284024795.png

 

“TableB”

vnuocmsft_7-1728284041849.png

 

vnuocmsft_5-1728283975413.png

 

“Sheet1”

 

vnuocmsft_3-1728283885396.png

vnuocmsft_2-1728283866336.png

“Sheet2”

 

vnuocmsft_4-1728283914514.png

vnuocmsft_1-1728283844405.png

Manage roles

 

vnuocmsft_9-1728284274193.png

 

Save and publish to the Power BI Service.

 

Go to Semantic model in the Power BI service.


Under Security, assign the user's mail to Role_Sheet1.

 

vnuocmsft_10-1728284543438.png

 

vnuocmsft_11-1728284562391.png

 

When A user accesses Sheet 1, he will see data in Table A with Country = "India" and Unit = "Unit1".

  vnuocmsft_12-1728284736109.png

When A user accesses Sheet 2, he will see data in Table A and Table B with Country = "India" and Unit = "Unit2"

vnuocmsft_13-1728284748876.png

Regards,

Nono 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
Anonymous
Not applicable

Hi @poojag820 

 

Thank you very much lbendlin for your prompt reply. Allow me to share something.

 

“TableA”

vnuocmsft_6-1728284024795.png

 

“TableB”

vnuocmsft_7-1728284041849.png

 

vnuocmsft_5-1728283975413.png

 

“Sheet1”

 

vnuocmsft_3-1728283885396.png

vnuocmsft_2-1728283866336.png

“Sheet2”

 

vnuocmsft_4-1728283914514.png

vnuocmsft_1-1728283844405.png

Manage roles

 

vnuocmsft_9-1728284274193.png

 

Save and publish to the Power BI Service.

 

Go to Semantic model in the Power BI service.


Under Security, assign the user's mail to Role_Sheet1.

 

vnuocmsft_10-1728284543438.png

 

vnuocmsft_11-1728284562391.png

 

When A user accesses Sheet 1, he will see data in Table A with Country = "India" and Unit = "Unit1".

  vnuocmsft_12-1728284736109.png

When A user accesses Sheet 2, he will see data in Table A and Table B with Country = "India" and Unit = "Unit2"

vnuocmsft_13-1728284748876.png

Regards,

Nono 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

Your RLS table lists all allowed composite keys for that employee.  It controls the fact table in a *:* single direction link.

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.