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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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