Forum Discussion
nsexton12
2 years agoResolver II
Remove Duplicate Values from Calculated Column Result
I have a calculated column that is using the values in a response column, searching it for keywords, and returning the values associated with those keywords from another table. The problem I am running into is that there are duplicates because there is overlap between keywords. For example:
| Problem |
| car emissions through use of fossil fuels are harming the environment |
| Keyword | Solution |
| car emissions | use less cars |
| fossil fuels | use less cars |
I am using the function in a calculated column in the problem table.
CONCATENATEX('Solutions Table',IF(SEARCH('Solutions Table'[Keyword],'Problem Table'[Problem],,999) <> 999,'Solutions Table'[Solution] &"; ",""))
This works great until I have an example like above. I would like it to only return "use less cars" instead of "use less cars; use less cars". I have tried everything I know how to do to get the duplicates to go away but cannot find any solution. Could someone please help me out?