Something like this? The reason I just guess is that I have no idea of which column you want to do your second running total.SELECT CONVERT(VARCHAR, a.[Month], 106) AS [Month], a.PlantID, a.Efficiency, a.baselineEfficiency, a.toDisplayInOnePage, a.EFFICIENCY + 10 + COALESCE(f.EFFICIENCY ,0) AS RUNNINGTOTAL, a.baselineEfficiency + 10 + COALESCE(f.baselineEfficiency ,0) AS RUNNINGTOTAL2FROM #Temp1 AS aCROSS APPLY ( SELECT SUM(b.Efficiency) AS Efficiency, SUM(b.baselineEfficiency) AS baselineEfficiency FROM #Temp1 AS b WHERE b.[Month] < a.[Month] AND b.PlantID = a.PlantID ) AS f
N 56°04'39.26"E 12°55'05.63"