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

Managing role - contain filter

Hi everybody,

 

I would like to filter my data in the managing role by using a contain rather than an "=". 

 

Is it possible to do so? 

 

Thanks in advance

2 ACCEPTED SOLUTIONS
VahidDM
Super User
Super User

Hi @Anonymous 

 

Please see these links:

https://docs.microsoft.com/en-us/dax/contains-function-dax

https://docs.microsoft.com/en-us/dax/containsstring-function-dax

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos✌️!!

View solution in original post

Anonymous
Not applicable

Hi @Anonymous ,

 

1.If you want to filter multiple users, you could use

IN {"UserA", "UserB","UserC"}

to replace

="UserA" 

2. If you want to check whether a vakue contains a specific string, you could use CONTAINSSTRING() or FIND() or SEARCH()

Measure = IF(CONTAINSSTRING(MAX('Table'[Value]),"Power BI"),1,0)
Measure = FIND("Power",MAX('Table'[Value]),,0)
Measure = SEARCH("Power",MAX('Table'[Value]),,0)

 

Eyelyn9_0-1632123157995.png

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

1.If you want to filter multiple users, you could use

IN {"UserA", "UserB","UserC"}

to replace

="UserA" 

2. If you want to check whether a vakue contains a specific string, you could use CONTAINSSTRING() or FIND() or SEARCH()

Measure = IF(CONTAINSSTRING(MAX('Table'[Value]),"Power BI"),1,0)
Measure = FIND("Power",MAX('Table'[Value]),,0)
Measure = SEARCH("Power",MAX('Table'[Value]),,0)

 

Eyelyn9_0-1632123157995.png

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

VahidDM
Super User
Super User

Hi @Anonymous 

 

Please see these links:

https://docs.microsoft.com/en-us/dax/contains-function-dax

https://docs.microsoft.com/en-us/dax/containsstring-function-dax

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos✌️!!

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.