Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 ID | Group |
1 | A |
1 | B |
1 | C |
2 | A |
3 | B |
3 | C |
I want my data to look like this:
User ID | Group | Overlaps with |
1 | A | B |
1 | A | C |
1 | B | C |
3 | B | C |
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.
@Anonymous This strikes me as a permutations/combinations kind of thing. See if recipe 9 in Chapter 10 of my book, DAX Cookbook helps. gdeckler/DAXCookbook (github.com)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
105 | |
96 | |
79 | |
67 | |
62 |
User | Count |
---|---|
137 | |
106 | |
104 | |
81 | |
63 |