Hello,
I have the following problem. I would like to calculate the goal difference for the last N games for each team specified (assuming the Date is already sorted, ie. 6 being the latest game played).
For example if I want to calculate the goal differences for England in their last 3 games I would like to have (1-1) + (3-0) + (2-1) = 4
I hope this is clear enough.
Thank you in advance.
Kind regards,
Pierre
I have the following problem. I would like to calculate the goal difference for the last N games for each team specified (assuming the Date is already sorted, ie. 6 being the latest game played).
For example if I want to calculate the goal differences for England in their last 3 games I would like to have (1-1) + (3-0) + (2-1) = 4
I hope this is clear enough.
Thank you in advance.
Kind regards,
Pierre