Forum Discussion
Burndown Graph with deadlines
Hi all,
I'm trying to create a graph that shows the expected burndown of milestones of a program. I would like to compare the planned dates with the actual dates. My goal would be two lines that start 25 and decline to 0 over time.
I have a table with numerous names for milestones, where a milestone name can appear multiple times for different projects [Milestone Name] , and a date on which the milestons will be completed [End date approved]. A sample of the data that i would like to use looks like this:
| Planned date | Actual date | Milestone Name |
| 31/12/2020 | 29/12/2020 | Example 1 |
| 31/12/2020 | 31/12/2020 | Example 2 |
| 30/04/2021 | 17/03/2020 | Example 3 |
| 30/06/2021 | 05/07/2020 | Example 4 |
| 30/09/2021 | 30/09/2021 | Example 5 |
| 30/10/2021 | 25/9/2021 | Example 6 |
| 30/10/2021 | 25/9/2021 | Example 7 |
| 30/10/2021 | 25/9/2021 | Example 8 |
| 30/10/2021 | 30/9/2021 | Example 9 |
| 30/10/2021 | 30/9/2021 | Example 10 |
| 30/10/2021 | 30/9/2021 | Example 11 |
| 30/10/2021 | 30/9/2021 | Example 12 |
| 30/10/2021 | 15/10/2021 | Example 13 |
| 30/10/2021 | 15/10/2021 | Example 14 |
| 30/10/2021 | 15/10/2021 | Example 15 |
| 30/10/2021 | 15/10/2021 | Example 16 |
| 30/10/2021 | 15/10/2021 | Example 17 |
| 30/10/2021 | 15/10/2021 | Example 18 |
| 30/10/2021 | 10/11/2021 | Example 19 |
| 30/10/2021 | 10/11/2021 | Example 20 |
| 30/10/2021 | 10/11/2021 | Example 21 |
| 30/10/2021 | 25/10/2021 | Example 22 |
| 31/12/2021 | 31/12/2021 | Example 23 |
| 31/12/2021 | 31/12/2021 | Example 24 |
| 31/03/2022 | 28/01/2022 | Example 25 |
The graph would ideally starts at the first date, with the total amount of milestones to go, and should end at 0 on the last date (31-03-2022). Something like this:
(applogies for the paint drawing)
Hi Anonymous
Try below measures.
Planned to do = VAR _count = CALCULATE ( COUNT ( 'Table'[Milestone Name] ), FILTER ( ALLSELECTED ( 'Date' ), 'Date'[Date] > MAX ( 'Date'[Date] ) ) ) + 0 RETURN IF ( ISBLANK ( SELECTEDVALUE ( 'Table'[Planned date] ) ), BLANK (), _count )Actual to do = VAR _count = CALCULATE ( COUNT ( 'Table'[Milestone Name] ), FILTER ( ALLSELECTED ( 'Date' ), 'Date'[Date] > MAX ( 'Date'[Date] ) ), USERELATIONSHIP ( 'Date'[Date], 'Table'[Actual Date] ) ) + 0 VAR _date = CALCULATE ( SELECTEDVALUE ( 'Table'[Actual date] ), USERELATIONSHIP ( 'Date'[Date], 'Table'[Actual Date] ) ) RETURN IF ( ISBLANK ( _date ), BLANK (), _count )Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.
11 Replies
- amitchandakSuper User
Anonymous , with help from date table like
Cumm Sales = CALCULATE(count(Table[Milestone]),filter(allselected(Date),Date[Date] >=max(Date[Date])))
or
Cumm Sales = CALCULATE(count(Table[Milestone]),filter(allselected(Table),Table[Planned Date] >=max(Table[Planned Date])))
- AnonymousNot applicable
Hi Amitchandak,
Thank you for the quick reply. I tried your solution, but it doesn't end at 0. It appears that the entire graph should shift one date entry, if that makese sense. Do you know if the measure can be adjusted so that it does?Kind regards,
Odi- v-jingzhangCommunity Support
Hi Anonymous
It seems ending at 1 is correct because on the last date (31-03-2022) there is the last one Milestone Example 25. If you want it to show the total amount of milestones to go (not including current day), you could replace >= with > in Amit's formula. But in this way, it will not start at 25 as the milestones on the first day will be filtered out.
Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.