Hi Vishal,
I missed this response from you. I have not understood why it will not work.
You should be having Year, Month, Profit in your select query and with the prompts mentioned earlier.
Then you can create table using Current Year , Month , Runningsum(Profit)