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
Anonymous
Not applicable

RLS Filter - Viewing multiple text values

I am a newbie when it comes to DAX expressions and RLS. I have looked at the MSFT documentation examples and haven't quite found (as far as I can tell) what I need. I have a colum named 'Department'. In this colum are various values such as:

 

Department

-------------

HR

Finance

Accounting

Marketing

IT

Executive

 

 

I am needing to do a RLS where I just show rows that contain HR, IT, or Executive. All three of those departments aggregated into one RLS view. I can do one department on a RLS view, but I have a need for three in one view.

 

Any ideas?

 

Thank you,

 

Jim

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

You could create a measure to set a rule.

Measure =
IF ( SELECTEDVALUE ( 'Table'[Column1] ) IN { "HR", "IT", "Executive" }, 1, 0 )

Then show the data when measure = 1 in the filter pane.

1-1.PNG

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

4 REPLIES 4
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

Add another email address column for the instructors in your table, then use USERNAME()/USERPRINCIPALNAME() function to implement dynamic row level security as described in the following similar blog.

https://radacad.com/dynamic-row-level-security-with-power-bi-made-simple

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
Anonymous
Not applicable

@v-eachen-msft , thanks for the link. I'd rather do the filter in the DAX expression. The users will come and go, based on our current AD structure. Do you know of anyway to do the filter direct as a DAX expression?

Hi @Anonymous ,

 

You could create a measure to set a rule.

Measure =
IF ( SELECTEDVALUE ( 'Table'[Column1] ) IN { "HR", "IT", "Executive" }, 1, 0 )

Then show the data when measure = 1 in the filter pane.

1-1.PNG

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
Anonymous
Not applicable

@v-eachen-msft  Thank you so much! That did the trick.

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.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.