Forum Discussion
AndrejZitnay
8 years agoPost Patron
Normal cumulative sum
Hello all, I want to show normal cumulative within line chart. My Axis has to be 3 years hence I use this : MonthYear Retention breakdown = FORMAT(Terminations[Date of Renewals],"mmm")&"-...
- 8 years ago
Of course... :-)
You just need to also include the column you are sorting by in ALL. Like so:
Retention Cumulative = CALCULATE ( [Retention], FILTER ( ALL ( Terminations[Date of Renewals], Terminations[MonthYear Retention breakdown], Terminations[SORT COLUMN OF MonthYear Retention breakdown] ), Terminations[Date of Renewals] <= MAX ( Terminations[Date of Renewals] ) ) )Does this make sense?
Daniil
8 years agoKudo Kingpin
Of course... :-)
You just need to also include the column you are sorting by in ALL. Like so:
Retention Cumulative =
CALCULATE (
[Retention],
FILTER (
ALL (
Terminations[Date of Renewals],
Terminations[MonthYear Retention breakdown],
Terminations[SORT COLUMN OF MonthYear Retention breakdown]
),
Terminations[Date of Renewals] <= MAX ( Terminations[Date of Renewals] )
)
)Does this make sense?
AndrejZitnay
8 years agoPost Patron