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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
vishy86
Post Patron
Post Patron

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, @vishy86 

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, @vishy86 

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 , @vishy86 

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

 

 

nandukrishnavs
Super User
Super User

@vishy86 

 

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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