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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Solution Sage
Solution Sage

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
Solution Sage
Solution Sage

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.