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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.