Forum Discussion

Ngauti's avatar
Ngauti
Frequent Visitor
1 year ago
Solved

How to add previous balance

can anyone solve me for this, how to achieve balance using dax
  • Deelip's avatar
    1 year ago

    Hi Ngauti 

     

    Use the below dax to get the balance output 

     

    Balance =
    VAR cydate = MAX('Table'[Date])
    VAR PreviousBalance =
        CALCULATE(
            SUM('Table'[Received]) - SUM('Table'[Processed]),
            'Table'[Date] <= cydate
        )
    RETURN
        PreviousBalance