I have a simple requirement and have tried multiple calculations but cannot get the required result.
The following is the required result from an excel spreadsheet.
The BEHIND column is what I cannot get a correct calculation for. In pseudo code it would be
sum(rank = 1)Points minus sum(Points)
I need to show the number of points each player is behind the leader.
The main issue is that there can be multiple selections which give different players, ranks and points so I cannot hard code anything or pre-calculate anything as the selections change the data. So the calculation must be in the straight table.