Forum Discussion
Flat Line in Cumulative Curve
- 9 years ago
Hi hackfifi
What I would suggest you do is the following:
Create a measure for your A Value with the example below:
A Total = IF(SUM('Table2'[A]) = 0,BLANK(),SUM('Table2'[A]))The above will always ensure that there is one place to change it, as well as then make it easier for the filter context later.
Then with the above measure you can now create your cumulative curve with the following measure.
Cumulative Actual = Var LNBD = LASTNONBLANK('Table2'[Date],[A Total]) RETURN CALCULATE([A Total],FILTER(ALL('Table2'[Date]), 'Table2'[Date] <= LNBD)) - 9 years agoHi there for your Year and Month values are those coming from the 'Progress Curve' table or the date table?
I think that might be the reason why it is not working as expected.
Thanks again GilbertQ
Hopefully i understood ur last query correctly. The LNBD works perfectly, as you can see from the below data --> the LNBD is 25/06/2017. The value of Actual after this date is NULL. Hence, i need the cumulative sum of the NON-NULL values
The only thing that I have always done is to have a Date table and I use the Date table for my cumulative totals to ensure that I always have the dates, even when there is no data.
- hackfifi9 years ago
Helper V
GilbertQ - Thanks again for your help. I just cant work out why the "Cumulative Actual" Formula doesnt work.
Cumulative Plan & Cumulative Forecast works perfectly.
The formulas used are:
Cumulative Plan =
CALCULATE (
'F2 Hours'[Progress % F2 Plan],
FILTER (
ALLSELECTED('Progress Curve'),
('Progress Curve'[Period] <= MAX ( 'Progress Curve'[Period]))))Cumulative Forecast =
CALCULATE (
'F2 Hours'[Progress % Forecast],
FILTER (
ALLSELECTED('Progress Curve'),
('Progress Curve'[Period] <= MAX ( 'Progress Curve'[Period]))))Cumulative Actual =
CALCULATE(
'F2 Hours'[Progress % Actual],
FILTER(
ALL('Progress Curve'[Period]),
'Progress Curve'[Period] <= [Var LNBD])) - GilbertQ9 years ago
Super User
Hi there for your Year and Month values are those coming from the 'Progress Curve' table or the date table?
I think that might be the reason why it is not working as expected.