Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

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 ...
  • v-jingzhang's avatar
    v-jingzhang
    5 years ago

    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.