Hi Assad! Welcome to the community!
If I’ve understood your idea correctly, it sounds like you’re asking for something like a running balance.
Other folks have requested things like this in other threads like the one here:
I’d encourage you to share your thoughts in that thread and vote on it there