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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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