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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
markpatton
Helper I
Helper I

How do you do conditional RLS

I am trying to do a conditional filter on my data. I have a simplified set of tabels to illustrate what I am trying to do. This needs to be done with RLS to filter the data. 

 

I am using a user table for RLS to limit the transactions seen by a user.

 

markpatton_1-1629134420004.png

 

This is my model. Just using a simple table to bind the users to transactions. A transaction can be bound to multiple users.

 

markpatton_3-1629134605277.png

 

This works fine, But I want to do secondary filtering on level. For example, when I view as user.three@email.com I don't want to see level two transactions. This is based conditionally on the user level set in the user table.

 

markpatton_2-1629134518824.png

 

I tried doing something like this but it did not work

 

markpatton_0-1629134332824.png

 

Basically, I dont want a user to login and see level 2 transactions if thier user level is level 2. Level 1 users should see everything. 

 

Mark

1 REPLY 1
markpatton
Helper I
Helper I

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.