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

Filtering by text within text column

Hello amazing community!

Does anyone know if it is possible to create a mesure which will filter the column 'purpose' and return only those rows which contain exact wording, for example, 'design' as on the below screenshot?

powerbi question.PNG

Many thanks for any formula suggestions!

Anna

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Finally, only this formula worked:

FilterMeasure = CONVERT (CONTAINSSTRING( 'Table' [purpose], "FM"), INTEGER)

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Finally, only this formula worked:

FilterMeasure = CONVERT (CONTAINSSTRING( 'Table' [purpose], "FM"), INTEGER)
tamerj1
Super User
Super User

Hi @Anonymous 

is it only one key word or you have list of key words placed in a separate table?

If so then you can place the following measure in the filter pane of the table visual, select "is not blank" then apply the filter.

FilterMeasure =
COUNTROWS (
    FILTER (
        CROSSJOIN ( VALUES ( 'Table'[Purpose] ), VALUES ( List[KeyWord] ) ),
        CONTAINSSTRING ( 'Table'[Purpose], List[KeyWord] )
    )
)

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.