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
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
v-ljerr-msft I was able to get it work eventually....
I kept all the formulas the same as yours except for the following:
Cumulative Plan Draft =
IF (
[Cumulative Draft Plan] > [Cumulative Draft Plan Last Month] ,
[Cumulative Draft Plan] ,
IF(
[Cumulative Draft Plan Last Month] = SUMMARIZE( 'CWP Status' , 'CWP Status'[Total Plan CWP Draft] ) ,
BLANK () ,
IF(
[Cumulative Draft Plan Last Month] = [Cumulative Draft Plan],
[Cumulative Draft Plan],
blank()
)
)
)
To make this work I needed to create a column that all it did was total the CWP Plans
Total Plan CWP Draft = sum ( 'CWP Status'[Planned Draft Complete] )
Not sure why I couldnt just replace the "summarize" formula with SUM ( 'CWP Plan Status' [ Planned Draft Complete])
Thanks for the help!!!