Forum Discussion
elcro
10 years agoFrequent Visitor
Cumulative total as continuous line on graph
I am trying to show the cumulative total of revenue as a continuous line on a graph, This is the formula I am using for my cumulative total: Cumulative Revenue = CALCULATE(SUM('Invoice by Task an...
- Anonymous10 years ago
You need to use the actual calendar table in your measure as well.
Cumulative Revenue = CALCULATE(SUM('Invoice by Task and Date'[Actual Revenue]), Filter(ALL(Calendar), Calendar[Date] <= MAX(Calendar[Date])))
Anonymous
10 years agoNot applicable
You need to use the actual calendar table in your measure as well.
Cumulative Revenue = CALCULATE(SUM('Invoice by Task and Date'[Actual Revenue]), Filter(ALL(Calendar), Calendar[Date] <= MAX(Calendar[Date])))elcro
10 years agoFrequent Visitor
Okay so that gets rid of the gaps (thanks!) but now it runs continuous to the end of my Calendar rather than stopping at the date of the lasy invoice. Any further advice?
- Anonymous10 years agoNot applicableIf you have some way to trim your calendar days to the end of your sales data, that is best.
Otherwise you will need to filter your cumulative total measure to dates <= "last sale date" which you could write in a separate measure.- elcro10 years agoFrequent Visitor
thank you so much!