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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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

Anonymous
Not applicable

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

Anonymous
Not applicable

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

Anonymous
Not applicable

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

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.