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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
NimaiAhluwalia
Responsive Resident
Responsive Resident

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 - a@email.com

A2 - A2 - a@email.com

A3 - A3 - a@email.com

B1 - B - a@email.com

B2 - B - a@email.com

B3 - B - a@email.com

A1 - A - b@email.com

A2 - A - b@email.com

A3 - A - b@email.com

B1 - B1 - b@email.com

B2 - B2 - b@email.com

B3 - B3 - b@email.com

 

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

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 - a@email.com

A2 - A2 - a@email.com

A3 - A3 - a@email.com

B1 - B - a@email.com

B2 - B - a@email.com

B3 - B - a@email.com

A1 - A - b@email.com

A2 - A - b@email.com

A3 - A - b@email.com

B1 - B1 - b@email.com

B2 - B2 - b@email.com

B3 - B3 - b@email.com

 

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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors