How to calculate moving Sum/Averages when using OVER keyword on Next Period.