Using Power Query in Power BI, I need to check for each row of a column to see if the value already exists as part of a larger string or is identical to a string in the column
If it does, then that value should be marked as already existing, if not it should be marked as being unique
| ID | string | result |
|---|---|---|
| 1 | "ABC,DEF,GHI,JKL" | unique |
| 2 | "DEF,GHI,JKL" | already exists |
| 3 | "MNO,PQR" | unique |
| 4 | "STU" | unique |
| 5 | "GHI,JKL" | already exists |
| 6 | "JKL" | already exists |
| 7 | "STU" | already exists |
I suspect I would need to create a list to make the check, but I cannot figure out how I could create these lists correctly.
