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

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

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

PlentyL_0-1683804430668.png



View solution in original post

3 REPLIES 3
Anonymous
Not applicable

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

 

Anonymous
Not applicable

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

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.