Forum Discussion

Fraze's avatar
Fraze
Helper I
4 years ago
Solved

Using previous row in current row calculation

Hello, trying to create an outstanding column using data from the previous row.   See example below for situation.   ID #1 has no previous data, so the outstanding balance is the Net change of $1...
  • smpa01's avatar
    smpa01
    4 years ago

    Fraze  can you try this

    Column = SUMX (
        FILTER (
            'Table',
            'Table'[Date] <= EARLIER ( 'Table'[Date] )
                && 'Table'[Customer] = EARLIER ( 'Table'[Customer] )
        ),
        'Table'[Net Change]
    )