May 2, 2023
I hope you are all well.
I'm just an average excel user. I need help to create a power query for running balance/total.
Basically in an ordinary excel formula, I can compute for running balance/ total by:
1st row -> Payout - Cash in (B2-A2)
2nd row -> Payout - Cash in + difference of previous row (B3-A3) + C2.
3rd row -> Payout - Cash in + difference of previous row (B4-A4) + C3.
So on and so forth...
|Cash in||Payout||Running Balance|
Can anyone help me please apply this in power query? I know I could just use the basic formula, but the reason why I want it in power query is because, I also have an updating data that I have also made some formatting in power query and I wanted to integrate this with my existing.
Appreciate if you can be detailed in the explanation that you will be providing. Thank you so much in advance.
Here is the link to my excel file: https://1drv.ms/x/s!AtBSy5wV0o.....g?e=lqbbaQ
February 13, 2021
Mynda has a great video on the subject, you can find it here, come back if you need further help.
October 5, 2010
This isn't your typical Running Total so the code I wrote for Power Query Running Totals would not work without modification.
So, I've written a different query that uses List.Sum and List.FirstN to SUM the differences between each row. This requires creating a temp column to calculate these differences, then you just sum them.
See attached file.