Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
PowerK
Frequent Visitor

Need help with creating table

Hi!

 

I have created an example. I have this kind of data in table:

picture1.png

 

 

 

 

 

 

 

I need to  see who has competed together with who in the same team and how many times. For example if I choose Alma from slicer, then I see that she has competed in the same team with Ketter (twice), Maria (once), Lisa (once).

So I think that I need this kind of table to count how many times they have competed together (example is done manually). Is there any way to do this kind of table automatically?

 

picture2.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Thanks in advance!

 

 

1 ACCEPTED SOLUTION
vicky_
Super User
Super User

Here's one possible solution:

I first go into PowerQuery and merge the table with itself.

vicky__0-1700083642993.png

And then I expand the table, but I only need the Competition and Name columns: 

vicky__1-1700083701734.png

Lastly, I have a query to remove the rows where it's the same person playing (i.e in row 1 - name1 is playing with name1)

The query is something like: 

= Table.SelectRows(#"Expanded Changed Type", each ([competition] = [competition.1] and [name] <> [name.1]))

 

I hope this helps.

View solution in original post

2 REPLIES 2
vicky_
Super User
Super User

Here's one possible solution:

I first go into PowerQuery and merge the table with itself.

vicky__0-1700083642993.png

And then I expand the table, but I only need the Competition and Name columns: 

vicky__1-1700083701734.png

Lastly, I have a query to remove the rows where it's the same person playing (i.e in row 1 - name1 is playing with name1)

The query is something like: 

= Table.SelectRows(#"Expanded Changed Type", each ([competition] = [competition.1] and [name] <> [name.1]))

 

I hope this helps.

PowerK
Frequent Visitor

Thanks! I had to modify a bit to get it exactly what I wanted, but this helped a lot!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors