Forum Discussion

Turnipface's avatar
Turnipface
Icon for Advocate I rankAdvocate I
7 years ago
Solved

Search text for keywords from another, separate table (Search through tags)

Hey PowerBI community, I found a few similar topics on this subject, but couldn't get it to work for my case specifically.  In table A i have a Text Column that contains multiple values in rand...
  • Anonymous's avatar
    Anonymous
    7 years ago

    Hi again,

     

    The problem is that second filter is returning many rows instead of just TRUE / FALSE, hence in order to get either true or false you can do  (there might be a better solution out there)

    NrRows = 
    COUNTROWS(
      FILTER(
        TableA;
        COUNTROWS(
          FILTER(
            SUMMARIZE(
              VALUES(TableB[Keyword]);
              TableB[Keyword];
              "result"; PATHCONTAINS(TableA[Text Column]; TableB[Keyword])
            );
            [result]
          ) > 0
       )
    )