I have data like this, where buckets can have different numbers of items:
Bucket A | Item 1
Bucket A | Item 2
Bucket A | Item 3
Bucket B | Item 3
Bucket B | Item 4
Bucket C | Item 1
Bucket C | Item 5
Bucket C | Item 2
I want to find the item overlap of all buckets, so I get it in the following format (with the base bucket on the left):
Bucket A | Bucket B | Bucket C
Bucket A 100% | 33% | 66%
Bucket B 50% | 100% | 0%
Bucket C 66% | 0% | 100%