Forum Discussion

haymanezzeldin's avatar
9 years ago
Solved

Cumulative column after name filter

Hello, I would like to create a column that calculates cumulative values after filtering the ProjectName column.       So for example, if I filter the ProjectName column and choose PRO_01_On...
  • haymanezzeldin's avatar
    haymanezzeldin
    9 years ago

    I found how it should be:

    Since the filter is based on a Text value (not date nor numerical), then filter using the "Values" function

    So it should be:

     

    =CALCULATE(SUM('Table1'[NonCumulativeValues] ), FILTER ( ALL ( 'Table1' ), [StartPeriod] <= MAX ( [StartPeriod] )), VALUES ( 'Table1'[ProjectName] ) ) ) 

     

    Best regards,

    Hayman