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.
Tried using the below (25th June 2016)
Var LNBD = date(2017,06,25)
- hackfifi9 years ago
Helper V
Yes, the line has always been working perfectly.
The line "value" is incorrect i.e. it not calculating as cumulative.
The line "value" is as COLUMN D below, but i need the values to be as COLUMN E (cumulative)
- GilbertQ9 years ago
Super User
Ok I can see that thanks. What does the Period column look like?
And when that is compared to the measure, do the Periods match up to the LNBD? - GilbertQ9 years ago
Super User
Ok thanks for that, when you put the above into a table, but this time using the measures for the [Progress % Actual], as well as the Period, and then the ]Cumulatve Actual]?
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.