I am working with Power BI tables and I am not being able to calculate balance "Running total" like I need.
I was searching in Stack Overflow and other webpages and I always find the same solution for a very similar situation, which is not this.
First of all, this is my table:
I found in this and other sites the same solution:
Running Total COLUMN =
CALCULATE (
SUM ( 'My table'[Accounting Balance] ),
ALL ( 'My table' ),
'My table'[Date] <= EARLIER ( 'My table'[Date] ))
This would work whenever I need to sum the rows vertically, which is not my case. Indeed, I need to sum the valu horizontally:
Any suggestions?
Edit 1:
This is what I need:
So if you take a close look to this table it has the resulting calculation of each column for each vendor like:
- Vendor 1 owed $200 on January 2017
- Vendor 1 owed $0 on February 2017 because he made a $200 payment
- Vendor 1 owed $50 on March 2017 because $0 + $50
- Vendor 1 owed $50 on April 2017 because he didn't make any payment.
- Vendor 1 owes $50 in total.
- etc