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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Row level security

Hi,

 

I am new to Row Level Security (RLS). I have a Customer Group, Customer and DM who should have access to only a specific Customer data.

 

I have tried to depict the above scenario, something like - 

 

Customer GroupCustomerDM
FF1A
FF2A
FF3B
FF1C
FF2C
FF3C
MC1C
MC2C
MC3C
MC4C
MC5C

 

DM 'A' should only have access to data related to Customer 1 & 2 of Customer Group FF.

DM 'B' should only have access to data related to Customer 3 of Customer Group FF.

DM 'C' should have access to all the Customers of both the Customer Groups FF and MC.

 

How can the RLS be implemented in such a scenario.

 

Thanks,

Vishy

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

Could you please tell me whether your problem has been solved?
If it is,  please mark the helpful replies or add your reply as Answered to close this thread.
It will help other community members easily find the solution when they get the similar issue.

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

Could you please tell me whether your problem has been solved?
If it is,  please mark the helpful replies or add your reply as Answered to close this thread.
It will help other community members easily find the solution when they get the similar issue.

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-easonf-msft
Community Support
Community Support

Hi , @Anonymous 

Please follow these steps:

1.define roles and rules within Power BI Desktop

Create roles ->select the table which you want to apply a DAX rule  -> Table filter DAX expression  
DM_A :

([Customer Group] = "FF" && [Customer] = "1") ||([Customer Group] = "FF" && [Customer] = "2")

DM_B :

([Customer Group] = "FF" && [Customer] = "3") 

DM_C :

[Customer Group] = "FF" || [Customer Group] = "MC"

78.png

2.Manage security on your model

add a members to the role by typing in the email address

 

Here is  a sample

Pbix attached

 

Best Regards,
Community Support Team _ Eason

 

 

amitchandak
Super User
Super User
nandukrishnavs
Community Champion
Community Champion

@Anonymous 

 

Your DM column should contains loginids. 

Refer to this https://community.powerbi.com/t5/Community-Blog/Dynamic-Row-Level-Security-Dynamic-RLS/ba-p/787399

 

Let me know if you have any doubts.



Did I answer your question? Mark my post as a solution!
Appreciate with a kudos
🙂


Regards,
Nandu Krishna

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

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.