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
VGL321
Regular Visitor

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!
VGL321
Regular Visitor

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

Hi @VGL321 ,

 

Thank you for reaching out to Microsoft Fabric Community Forum.

@Deku Thank you for your quick response.

 

@VGL321 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 @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

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

VGL321
Regular Visitor

@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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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