Forum Discussion

OscarSuarez10's avatar
OscarSuarez10
Helper III
6 years ago
Solved

Cumulative Cashflow

Hello I want to calculate the cumulative cash flow until the third year like in the following table (per ID, JOB and YEAR), can you help me?   ID JOB YEAR CASHFLOW CUMULATIVE CASHFLOW 1 ...
  • v-frfei-msft's avatar
    6 years ago

    Hi OscarSuarez10 ,

     

    To create a calculated column as below.

    CUMULATIVE CASHFLOW n = CALCULATE(SUM('Table'[CASHFLOW]),FILTER('Table','Table'[ID]=EARLIER('Table'[ID]) && 'Table'[YEAR]<=EARLIER('Table'[YEAR])))