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

Create 2 RLS groups with different conditions

Hi.
there aree 2 tables - Sales & Manager, (from source i am getting sales table - Email column (with 2 or 3 Emails as a single row as per screenshot, Manager table have Email column as below)

when manager logis in he should see entire report data without any filters 
when sales team member login they should see only their data with RLS. How i can implement 2 RLS  roles(RLS , Non RLS )by uisng 2 tables ? Any help

VGL321_0-1741269596595.png

 

8 REPLIES 8
Deku
Super User
Super User

Update the sales teams so single person per row. Add the sales tean table to the model and setup relationship using email.

 

Add managers with no relationships 

 

Add this to a RLS role on the sales table.

Switch(

True

, USERPRINCPALNAME() in managers(), true,

, USERPRINCPALNAME() = SalesTeam[email]

)


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!
Anonymous
Not applicable

@Deku DAX is giving Syntax for List is incorrect error, when i applied RLS on Sales Table 
Could you please help

Hi @Anonymous ,

 

Thank you for reaching out to Microsoft Fabric Community Forum.

@Deku Thank you for your quick response.

 

@Anonymous Please try the below DAX in the RLS role on the Sales table:

 

SWITCH(
    TRUE(),
    USERPRINCIPALNAME() IN VALUES(Manager[Manager]), TRUE(),
    USERPRINCIPALNAME() = Sales[UserEmail]
)
  

If your problem has been solved already, please mark the helpful reply and accept it as solution, it will be helpful for other members of the community who have similar problems as yours to solve it faster .

Thank you very much for your kind cooperation!

 

Regards,

B Manikanteswara Reddy

Hi @Anonymous ,

 

We wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?

 

If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Regards,

B Manikanteswara Reddy

Hi @VGL321 ,

 

We wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?

 

If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Regards,

B Manikanteswara Reddy

Hi @VGL321 ,

 

We wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?

 

If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Regards,

B Manikanteswara Reddy

Anonymous
Not applicable

@Deku manager should see full report  (manager data + Sales team data also = Entire report he should see  )

Deku
Super User
Super User

Should the manager see all data, or data for their team?


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

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.