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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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