my input data is:
a,e
a,c
a,b
c,e
b,d
b,e
d,c
d,e
my output is:
a,e
a,c,e
a,b,d,c,e
a,b,e
my input data is:
a,e
a,c
a,b
c,e
b,d
b,e
d,c
d,e
my output is:
a,e
a,c,e
a,b,d,c,e
a,b,e
It looks like Tobias already answered your question in a very similar thread you posted here:
I’ll close this thread to keep things tidy.