Forum Discussion
Cumulative Line with Smart End Date
- 9 years ago
Hi kenyonca,
A little weird. As the measure "Cumulative Draft Plan" is Cumulative, it shouldn't produce any gaps.
Could you help confirm the followings:
1. Now you should have three measures for "Draft Plan" in you mode.
Cumulative Draft Plan = CALCULATE ( SUM( 'CWP Status'[Planned Draft Complete] ) , FILTER ( ALL ( 'CWP Status' ) , 'CWP Status'[Value] <= MAX ( 'CWP Status'[Value] ) ) )Cumulative Draft Plan Last Month = CALCULATE ( [Cumulative Draft Plan], DATEADD ( 'YourDateTable'[Date], -1, MONTH ) )New Cumulative Draft Plan = IF ( [Cumulative Draft Plan] > [Cumulative Draft Plan Last Month], [Cumulative Draft Plan], BLANK () )2. And you should show the last measure "New Cumulative Draft Plan" on the chart.
If you have done that, and it still doesn't work, could you share a sample pbix file which can reproduce the issue? So that we can help further investigate on it. You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.:smileyhappy:
Regards
Hey v-ljerr-msft when I try that solution it gives me gaps in the cumulative line. I am hoping to get a continuous line that would just be flat for any of the gaps. This becomes quite noticeable when I use any data slicers.
I tried to modify the "Cumulative Draft Plan Last Month" formula to be
Cumulative Draft Plan Last Month =
CALCULATE (
[Cumulative Draft Plan],
DATEADD ( 'YourDateTable'[Date], -2, MONTH )
)
However, when I do this it just extends out an extra month from when the last Draft Plan occurred.
Any ideas of how to fill in these gaps?
Hi kenyonca,
A little weird. As the measure "Cumulative Draft Plan" is Cumulative, it shouldn't produce any gaps.
Could you help confirm the followings:
1. Now you should have three measures for "Draft Plan" in you mode.
Cumulative Draft Plan = CALCULATE (
SUM( 'CWP Status'[Planned Draft Complete] ) ,
FILTER (
ALL ( 'CWP Status' ) ,
'CWP Status'[Value] <= MAX ( 'CWP Status'[Value] )
)
)
Cumulative Draft Plan Last Month =
CALCULATE (
[Cumulative Draft Plan],
DATEADD ( 'YourDateTable'[Date], -1, MONTH )
)
New Cumulative Draft Plan =
IF (
[Cumulative Draft Plan] > [Cumulative Draft Plan Last Month],
[Cumulative Draft Plan],
BLANK ()
)
2. And you should show the last measure "New Cumulative Draft Plan" on the chart.
If you have done that, and it still doesn't work, could you share a sample pbix file which can reproduce the issue? So that we can help further investigate on it. You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.:smileyhappy:
Regards