LinkedIn post by:
JvdV
I suppose one would leave out a group if no player has played over 9 matches:
=LET(a,C2:C13,b,SORT(FILTER(HSTACK(A2:B13,D2:D13/a),a>9),3,-1),c,UNIQUE(TAKE(b,,1)),HSTACK(c,VLOOKUP(c,b,2,0)))
Power Query
let
Source = Excel.CurrentWorkbook(){[ Name = "data" ]}[Content],
Average = Table.AddColumn ( Source, "Avg", each [Total Points] / [Matches] ),
Return = Table.Group (
Average,
"Group",
{
"Player",
each Table.Max ( Table.Sort ( _, { "Avg", 1 } ), { ( f ) => f[Matches] >= 10, "Avg" } )[
Player
]
}
)
in
Return
Qualifying Player.xlsx (24.0 KB)