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
DanCasSan20
New Member

Apply filter with RSL

Hello community!

 

I have a model, which I need to filter by user and year; However, when I configure my RSL it does not filter my data.

 

DanCasSan20_0-1715410739475.png

 

As you will see in the image, I have created a filter where I have 2 conditions, if the user who logs in is different than "mailadmin@mydomain.com" the data should be filtered and only the information from 2023 onwards should be shown, but, When I validate this it does not filter the years and continues to show all the years.

 

Could you tell me what I'm doing wrong?

 

Thank you!

 

Rgds,

DC

1 ACCEPTED SOLUTION
xifeng_L
Super User
Super User

Hi @DanCasSan20 ,

 

If a user has permissions for multiple roles at the same time, his permissions are the union of multiple roles.
So, when testing, you should only choose one roles.

 

And, you can try below RLS expression on DIM_TIMEPO:

 

 

IF(USERNAME()<>"mailadmin@mydomain.com",TRUE(),'DIM_TIMEPO'[Year]>=2023)

 

 

Also, you can enable security filtering options when establishing relationships.

 

xifeng_L_0-1715421081632.png

 

 

Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !

 

Thank you~

 

View solution in original post

1 REPLY 1
xifeng_L
Super User
Super User

Hi @DanCasSan20 ,

 

If a user has permissions for multiple roles at the same time, his permissions are the union of multiple roles.
So, when testing, you should only choose one roles.

 

And, you can try below RLS expression on DIM_TIMEPO:

 

 

IF(USERNAME()<>"mailadmin@mydomain.com",TRUE(),'DIM_TIMEPO'[Year]>=2023)

 

 

Also, you can enable security filtering options when establishing relationships.

 

xifeng_L_0-1715421081632.png

 

 

Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !

 

Thank you~

 

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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