Im sorry but I dont have enough rep to comment.
What I think you are trying to do is a running total
SELECT (SELECT sum(revenue) from myTable a2
where a1.edate >= a2.edate)
as RunningSumField1,
edate from myTable as a1
group by a1.edate
order by a1.edate
try this link: