Forum Discussion
Finding matching substring with DAX
- 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.
Hi Ashish_Mathur,
Your solution works perfectly, however I forgot one important detail in my question. I need to find substrings from the "words" table as well. Example:
The matching substrings are followed by " - " and then another set of substrings are also present. (It is an English - Spanish dictionary).
Is there a solution for this problem?
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.
- Anonymous4 years agoNot applicable
Thank you Ashish_Mathur 🙂
After the VALUES function I had to pass the "Words" table and not the "Words[WORDS]" collumn.
- Ashish_Mathur4 years agoSuper User
You are welcome.