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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Rahul_2992
Frequent Visitor

Power BI RLS

Hello Folks,
I need help regarding RLS, Any help would be realy appriciated.

I have role for individual users in database and based on that role I want to set row level security in Power BI, the example is as below
role:
l1,l2,l3,l4,l5,
l1 role will have operator level access
l2 role will have branch level access
l3 role will have customer level access
l4 role will have location level access
l5 role will have pos level access

Now I have separate dim tables for all this operator, branch, customer, location and POS
But l1 role will have only specific access of operatoe let say

user 1 has role l1 and we have two operator in operator table op1 and op2 but user 1 will have only access of op1 not for the data of Op2.

I have same scenario for branch, customer, location and POS what should I do

I have relationship between this tables is as below:
operator and branch table has one to many relationship
branch and customer has one to many relatonship
customer and location has one to many relatonship
location and POS has one to many relatonship
Thanks in advance.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Rahul_2992 

 

You can enter the following dax expression in the row-level security expression box:

[OperatorID] IN 
(SELECTCOLUMNS(FILTER('UserMapping', 'UserMapping'[UserLogin] = USERPRINCIPALNAME() 
&& 'UserMapping'[Role] = "L1"),
 "OperatorID", 'UserMapping'[OperatorID]))

 

This DAX formula assumes you have a UserMapping table with UserLogin, Role, and OperatorID columns. It filters the operator data to only show the operators that the logged-in user has access to based on their role.

 

 

 

Best Regards,

Jayleny

 

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
Anonymous
Not applicable

Hi @Rahul_2992 

 

You can enter the following dax expression in the row-level security expression box:

[OperatorID] IN 
(SELECTCOLUMNS(FILTER('UserMapping', 'UserMapping'[UserLogin] = USERPRINCIPALNAME() 
&& 'UserMapping'[Role] = "L1"),
 "OperatorID", 'UserMapping'[OperatorID]))

 

This DAX formula assumes you have a UserMapping table with UserLogin, Role, and OperatorID columns. It filters the operator data to only show the operators that the logged-in user has access to based on their role.

 

 

 

Best Regards,

Jayleny

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hey, @Anonymous 

Thanks for your reply,
I have sorted out how to apply RLS based on different hierarchy level and users permission.
I really appriciate for your help and time.
Thanks.


Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.