Accumulated record

Hi I have the following query:

In a grid I want the “Accumulated” me to join the record “amount” above.
How I can do?

thanks