Forum Discussion

NessFlood's avatar
NessFlood
Helper I
1 year ago
Solved

CUMULATIVE SUM FOR MULTIPLE LINES

I am wanting a cumulative total for Actual, Budget and Forecast on the same line graph - the cumulative measure I'm using below works when I seelct my slicer but I think I need three separate measures to filter for Actual, Budget and Forecast. Ultimately I want all the lines showing on the graph to the right to also be showing on the graph to the left.

 

Can you please advise what change I need to make to this formula or a new formula?

 

CUMULATIVE VALUE =
VAR _maxdate = MAX(APPENDED[Date])
RETURN
CALCULATE(SUM(APPENDED[Value]),ALLSELECTED(APPENDED),APPENDED[Date]<=_maxdate)

 

4 Replies