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

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.

Reply
Pan_Forex
Helper III
Helper III

The most frequent 2 conditions

Hi guys! I try to count the most frequently played pairs of players in the same team. The [game_id] is always the same for each game, [team] is 1 or 0. I have come up with something like this so far and the max function is still missing. Maybe you have other better ideas?

 

player_pair = COUNTX(FILTER('table', 'table'[team] = [team] && 'table'[game_id] = [game_id]), 'table'[player])
game_id   player   team   
1522B0
1522A0
1522T1
1522F1
1522C0
1522H1
1500Y0
1500U1
1500O1
1500A1
1500B1
1500Z0
1500X0
1500Q0

 

From the above example, it should come out that players A and B played together 2 times in the same team.

1 REPLY 1

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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