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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.