Forum Discussion
haymanezzeldin
Helper I
9 years agoCumulative 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...
- 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
haymanezzeldin
Helper I
9 years agoPhil_Seamark
Microsoft Employee
9 years agoGive this measure a crack. I think it might be close
Measure =
CALCULATE (
SUM ( 'Table1'[NonCumulativeValues] ),
FILTER (
ALL ( 'Table1' ),
[StartPeriod] <= MAX ( [StartPeriod] )
&& Table1[ProjectName] = MAX ( 'Table1'[ProjectName] )
)
)