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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Anonymous
Not applicable

RLS Security with columns that contains specific words

Hi, I'm trying to implement RLS into a Power BI report that contains specific words. I have a column that is responsible for descriptions, in those descriptions are key words that would be used to implement RLS. 

 

Is there any DAX I could use to implement a find or contain or if function I can use in an RLS filter?

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

The function CONTAINSSTRING should work for this purpose.

 

An RLS filter might look something like this:

CONTAINSSTRING ( Table1[Description], "keyword" )

View solution in original post

3 REPLIES 3
AlexisOlson
Super User
Super User

The function CONTAINSSTRING should work for this purpose.

 

An RLS filter might look something like this:

CONTAINSSTRING ( Table1[Description], "keyword" )
Anonymous
Not applicable

This is perfect! Thank you.

DataVitalizer
Solution Sage
Solution Sage

Hi @Anonymous 

Take a look here https://docs.microsoft.com/en-us/power-bi/admin/service-admin-rls

 

Did it work ? 👌Mark it as a solution to help spreading knowledge 👉A kudos would be appreciated

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.