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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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