Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Finding matching substring with DAX

I have two tables "Sentences" and "Words".   My goal is to add a calculated column/measure to the "Sentences" table, which contains the words that also occur in the Words table. The "Sentenc...
  • Ashish_Mathur's avatar
    Ashish_Mathur
    4 years ago

    Hi,

    From the 1 column Words table, build a 3 column table with the original, English and Spanish columns.  Modify my calculated column formula to:

    Words found = CONCATENATEX(FILTER(VALUES(words[Words]),CONTAINSSTRING(sentences[text],words[English])),words[Words],",")

    Hope this helps.