Hi All,
I'm stuck in a business requirement where I need to find common values in two different rows and then output the values in a new column.
The values are comma-delimited and do not adhere to a specific order.
Sample Input:
| Profile | Entitlements |
| A | 1, 2, 3 |
| A | 4, 2, 1, 5 |
| A | 1, 6 ,4 |
| B | 1, 2, 3, 5 |
| B | 6, 7, 8, 9 |
Expected Output:
| Profile | Entitlements | Commonality |
| A | 1, 2, 3 | 1,2 |
| A | 4, 2, 1, 5 | 1,2 |
| A | 1, 6 ,4, 2 | 1,2 |
| B | 1, 2, 3, 5 | n/a |
| B | 6, 7, 8, 9 | n/a |
Thanks!