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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Test IF string exists based on a list of values

I have a column of comments in Table1. I have a column of keywords in Table2. 

I want to flag TRUE or FALSE if the comments from Table1 contain any of the keywords from Table2 for each record. The complete keyword needs to be present in the comment.

Thanks.

Scott

 

 

 

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

You may refer to the DAX below.

Column =
COUNTROWS (
    FILTER (
        Table2,
        SEARCH ( " " & Table2[keywords] & " ", " " & Table1[comments] & " ", 1, 0 )
            > 0
    )
)
    > 0
Community Support Team _ Sam Zha
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

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

You may refer to the DAX below.

Column =
COUNTROWS (
    FILTER (
        Table2,
        SEARCH ( " " & Table2[keywords] & " ", " " & Table1[comments] & " ", 1, 0 )
            > 0
    )
)
    > 0
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Kudoed Authors