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
NimaiAhluwalia
Continued Contributor
Continued Contributor

Row Level Security

Imagine this scenario.

2 user groups.  A & B which are aligned to sales channels A and B.

Each channel contains customers.  Lets say A1, A2, A3 and B1, B2 B3

 

Users in group A need to see all sales in channel A and be able to see the detail of sales for A1, A2 and A3.  They also need to see an aggregated view of sales for Channel B, but NOT the detail.  So all of B aggregated together.

 

Same is true of users in group B.  Then need to see all of B sales and B1,B2, B3 but only an aggregated view of sales for A.

 

RLS no good as that would prevent A from seeing any of B and vice versa.

 

What is the solution??

@amitchandak

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@NimaiAhluwalia , I would advise creating a table having only group-level data, not having customer data, and joining. That will allow you to see that data.

 

Other way would have a column and access in RLS table, joining back to Customer, filter from RLS table to Customer. So new column(Customer Share Group) in RLS will be used in visual also

 

Customer , Customer Share Group, Email

A1 - A1 - [email protected]

A2 - A2 - [email protected]

A3 - A3 - [email protected]

B1 - B - [email protected]

B2 - B - [email protected]

B3 - B - [email protected]

A1 - A - [email protected]

A2 - A - [email protected]

A3 - A - [email protected]

B1 - B1 - [email protected]

B2 - B2 - [email protected]

B3 - B3 - [email protected]

 

This can be intermeditae table if you want to avoid too much of data in RLS

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@NimaiAhluwalia , I would advise creating a table having only group-level data, not having customer data, and joining. That will allow you to see that data.

 

Other way would have a column and access in RLS table, joining back to Customer, filter from RLS table to Customer. So new column(Customer Share Group) in RLS will be used in visual also

 

Customer , Customer Share Group, Email

A1 - A1 - [email protected]

A2 - A2 - [email protected]

A3 - A3 - [email protected]

B1 - B - [email protected]

B2 - B - [email protected]

B3 - B - [email protected]

A1 - A - [email protected]

A2 - A - [email protected]

A3 - A - [email protected]

B1 - B1 - [email protected]

B2 - B2 - [email protected]

B3 - B3 - [email protected]

 

This can be intermeditae table if you want to avoid too much of data in RLS

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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 Fabric 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.