DAX code
Running Balance =
CALCULATE(
SUM('Ledger'[Amount]),
FILTER(ALL('Date'[Date]), 'Date'[Date] <= MAX('Date'[Date]))
)
Accumulates a transaction amount into a running balance up to the current date filter context.
Type your table and column names once. Every measure below updates.
Running Balance =
CALCULATE(
SUM('Ledger'[Amount]),
FILTER(ALL('Date'[Date]), 'Date'[Date] <= MAX('Date'[Date]))
)
Replace 'Ledger'[Amount] with your transaction amount column, using negative values for debits if needed.
Browse all 175 measures in the Power BI DAX Measures Library, or search the library for something similar to Running Balance.