Forum Discussion
Burndown Graph for projects based on date
- 4 years ago
Hi Consta
I started by creating a calendar table to get consecutive columns of dates. Then create three measures to be used as values. I put my pbix file in the attachment you can reference.
Result :
In fact, if the date starts too long, you might consider using this setting below to specify the time period you need.
If something wrong, please let me know.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Wow.
That was what I need! Thank you.
I want to understand the equal distr. and start_project measures.
Can you explain what you did there? I want to learn.
Your solution looks great.
And: Why doesnt this work instead of the measure start_projects: Drag the Project Name as a count to the values of the chart.
Hi Consta,I am glad you are satisfied with this result.
The visual conversion from line chart to table allows you to see the underlying data more visually.
equal distribution =
VAR _total =
DISTINCTCOUNT( 'Table'[Project Name] ) // How many project names are there in total
VAR _diff =
DATEDIFF(
MINX( ALL( 'Table 2' ), [Date] ),
MAXX( ALL( 'Table 2' ), [Date] ),
QUARTER
) // How many quarters are there in total
VAR _1 =
DATEDIFF(
MINX( ALL( 'Table 2' ), [Date] ),
DATE( SELECTEDVALUE( 'Table 2'[Date].[Year] ), 3 * ( SELECTEDVALUE( 'Table 2'[Date].[QuarterNo] ) ), 1 ),
QUARTER
) //Total number of quarters starting from the smallest date to the currently selected date (function of selectedvalue)
VAR _result = _total - _1 * ( _total / _diff ) // for example: 160 ProName - 2 months have passed* (average ProName starting each month)
RETURN
IF( _result > _total, BLANK(), _result )
// when blank, it will hidden the year and quarter.
start_projects =
CALCULATE(
DISTINCTCOUNT( 'Table'[Project Name] ),
FILTER(
'Table',
[Planned start date].[Quarter] = SELECTEDVALUE( 'Table 2'[Date].[Quarter] )
&& [Planned start date].[Year] = SELECTEDVALUE( 'Table 2'[Date].[Year] )
)
)//Count the number of non-duplicates in a filtered table. The filtering condition is that the quarter and year in the planned start date are equal to the values in the first and second columns of the current table.
For the first row, the selectedvalue() is the 2020-3 quarter.
Did I explain myself clearly? You can ask me again if you have any questions.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Consta4 years agoFrequent Visitor
I understand thank you!
When I use the measures for the planned end dates (I adapted the measure to refer to this column) I get a gap from the remaining projects. X Axis is on categorized. Do you know a fix for this?
When i choose continous this problem is fixed but i only can see january and july in the drilldown not the quarters. So its 2020 July, 2023 January etc.. instead of 2020-Q3,2020-Q4..
- v-chenwuz-msft4 years agoCommunity Support
Hi,@Consta
Yes,when catagorized, it will be 2020-Q3,2020-Q4. But with continous, it will be a continuous X Axis. I thought about using this approach at first, but I saw that your requirement was in the form of something like 2020-Q3, so I chose to write measure to achieve it. There is no way to fix it directly at the moment, you can suggest it in power Bi ideas.
I see that your chart still has the early start quarter, trying to use a combination of if() and blank() will keep it from showing.- Consta4 years agoFrequent Visitor
How exactly should i use if() and blank()?
Thanks for the help.