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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.