This screenshot shows how the LAG calculation is affected when the partition clause is removed.