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
Deepesh_V95
Frequent Visitor

How to apply dynamic Row level Security based on Username and location

Hi all,

 

I have a certain scenario where I have to apply dynamic RLS. Here is the case- I have a user table1.PNG

 

A location table2.PNG

 

 

 

 

And a Sales table3.PNG

 

 

I want to apply Row level security that if a certain user logs in using the Email he should not only see his data but also all the users who are also in the same location. So if you can see in above User table, UserID 1,2,3 all are from location 1(i.e. User 1,2,3). So if user 1 logs in he should see the data of all the people who are in location 1.

 

So please suggest how to apply Row level security for this scenario? What DAX formula or logic needs to be applied here?

 

Thank you!

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

@Deepesh_V95,

 

You may check the post below.

https://community.powerbi.com/t5/Desktop/Row-level-security-to-see-organization-data-for-different-u...

Community Support Team _ Sam Zha
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

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@Deepesh_V95,

 

You may check the post below.

https://community.powerbi.com/t5/Desktop/Row-level-security-to-see-organization-data-for-different-u...

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

Thank you Sam, that was helpful.

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.