i’ve a problem with a SSRS report and query in Sql Server 2008 that, in my opinion, is (easy) solvable in excel … but, not in Sql !
Follow what i need:
My table:
Start amount X: 1.000.000
Month Value AmountX
1 1 000 (AmountX - Value) = 999 000
2 500 (Prev. AmountX - Value) = 998 500
3 800 (Prev. AmountX - Value) = 997 700
.....
.....
Check out
RunningValue(), you would use this as a function in your SSRS reporthttp://msdn.microsoft.com/en-us/library/ms159136(v=sql.100).aspx