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
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
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.