Forum Discussion

xvanwindekens's avatar
xvanwindekens
Regular Visitor
8 years ago
Solved

RANKX for each date

Hi, 

 

I am trying to rank players for each day in one table and calculate the rank difference between dates for a same player in another column. Note that there is a gap between some dates and the ranking is descending.  

 

Data:

DatePlayerScore
1/1/2017John12
1/1/2017Nico2
1/1/2017Steve7
1/1/2017Ben4
1/2/2017John25
1/2/2017Nico28
1/2/2017Steve26
1/2/2017Ben28
1/3/2017John39
1/3/2017Nico37
1/3/2017Steve40
1/3/2017Ben35
1/6/2017John47
1/6/2017Nico49
1/6/2017Steve47
1/6/2017Ben46

 

Desired table

 

 1/1/20171/2/20171/3/20171/6/2017
PlayerScoreRankDiffScoreRankDiffScoreRankDiffScoreRankDiff
John124-251+3393-2472+1
Nico21-283-2372+1494-2
Steve73-262+1404-2472-2
Ben42-283-1351+2461-

 

Thank you for your help.