Hi all,
My doubt is, how to generate all possible combinations of elements from a given list and assign each combination a unique group ID? Here are some examples
Input 1:
Output 1:
Input 2:
Output 2:
| GroupID | Value |
| 1 | A |
| 1 | B |
| 1 | C |
| 2 | A |
| 2 | B |
| 3 | A |
| 3 | C |
| 4 | B |
| 4 | C |
| 5 | A |
| 6 | B |
| 7 | C |
OBS: The real case input right now has 15 values, and it should generate 32767 groups (2^n-1).
Thanks.