Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

How do I pivot this data for a chord chart?

I'm trying to pivot some data so that it can feed into a chord chart but I'm not quite sure what to do. I'm trying to find each group that overlaps with other groups and how often they overlap. Ultimately counting the number of connections groups have, I think a chord chart is best to represent this.

 

Starting data looks like this:

User IDGroup

1

A
1
1C
2A
3B
3C

 

I want my data to look like this:

 

User IDGroupOverlaps with
1AB
1AC
1BC
3BC

 

Note that it is only counting other groups. So A does not overlap with A, and B does not overlap with B. It also only counts 1 direction, so user 3 results in B overlapping with C but not also C overlapping with B.