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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
PlentyL
Helper II
Helper II

Filter within a Measure

Hi All,

 

I am writing a measure to count all records containing "director" within a job title collumn. However they all vary. Instead of using "IN", what can I use to pick up anything containing "director"?

 

Example of my measure below.

PlentyL_0-1683800129760.png

 

Thanks in advance!

1 ACCEPTED SOLUTION
PlentyL
Helper II
Helper II

I have been able to do it with the below! 🙂

PlentyL_0-1683804430668.png



View solution in original post

3 REPLIES 3
PlentyL
Helper II
Helper II

I have been able to do it with the below! 🙂

PlentyL_0-1683804430668.png



milanpasschier3
Resolver I
Resolver I

Hey man,

 

Maybe you could use a regular expression. This could help: https://community.powerbi.com/t5/Desktop/Filtering-a-text-column-for-a-specific-pattern/m-p/540794

 

Best,

 

Milan

 

Unfortunately my knowledge is quite basic and i am not familiar with custom functions or R Script :(, but thanks!

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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