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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Search table of strings based on selected keyword

Hello,

I have tried the other solutions on here with no luck.  I see solutions using COUNTX, COUNTROWS, as a Measure, but my attempts at implementing these never worked.

I would like to select a Keyword in a keyword table, and then display each row whose string contains the selected keyword in a conversations table.

If I select, "Apple," I would like to see "I like apples," "apples are good" in the conversations table.

Here's what I wish I could do in psuedocode:

FilteredConvos = FILTER(Conversations[conversations], "String in row contains SELECTEDVALUE(Keyword[keyword]")

Any help is appreciated!

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous 

You can create a new measure on your table.

Then use the keywords table as a slicer.

T17 is my strings table.
T18 is my keywords table.

Exist = 
VAR searched_value =
    SEARCH (
        SELECTEDVALUE ( T18[Dictionary] ),
        SELECTEDVALUE ( T17[String] ),
        ,
        BLANK ()
    )
RETURN
    IF (
        searched_value > 0,
        "Exist"
    )

Dynamic_Filter.gif

 

Thanks!
A

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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