have you tried the Accumulation functonality available on the Expression tab? This would get you a running total out of the box. The only downside is that the first 3 months in your case would not have the same weight as the following months.
I take it SalesMonth is your dimension shown along the x-axis? If this is the case using set analysis against the dimension field will not work as you need your set to be created for each row of the chart, or point on your x-axis, whereas set analysis will be evaluated once per expression. Your best bet would be a linked date table built in your script. For a whole discussion around this check this post:
and especially the answer from John Witherspoon to the later questions where he tackles your precise question. As ever his explanations are clear and precise.