Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Scope and Forecast Date intercept

Hello all,

Using Jira data, I have created a basic burn up chart in Power BI. In the chart, I show the estimated story points (Scope) for the period, and completed story points. I have then included three forecast tracks: standard forecast, optimistic forecast, and pessimistic forecast that pick up after the last resolved date for completed stories. Now I would like to be able to surface, and display the dates on which each of the forecasts intercept with the scope line.  So far I'm stuggling to produce this using DAX.

Above, you can see the Forecast intercepts with the Quarterly Scope on 12/26/2021. Can anyone suggest an approach in DAX that will surface that date?

  • Is this what you're after?

    ForcastDate =
    CALCULATE (
        MIN ( Table1[Date] ),
        FILTER ( Table1, Table1[Forecast] >= Table1[Quarterly Scope] )
    )

     

3 Replies

  • Is this what you're after?

    ForcastDate =
    CALCULATE (
        MIN ( Table1[Date] ),
        FILTER ( Table1, Table1[Forecast] >= Table1[Quarterly Scope] )
    )

     

  • v-yalanwu-msft's avatar
    v-yalanwu-msft
    Icon for Community Support rankCommunity Support

    Hi, Anonymous ;

    If I understand you correctly, are you looking for the date closest to 75? If so, you can try it:

    Measure = 
    var _a=TOPN(1,SUMMARIZE( ALL('Table'), [Date],"1",ABS(MAX('Table'[Forecast])-MAX('Table'[Quartery Scope]))),[1],ASC)
    return MINX(_a,[Date])

    Then add Y-Axis constant line.

    The final output is shown below:

     

    Best Regards,
    Community Support Team_ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • v-yalanwu-msft's avatar
    v-yalanwu-msft
    Icon for Community Support rankCommunity Support

    Hi, Anonymous ;

    Is your problem solved?? If so, Would you mind accept the helpful replies as solutions? Then we could close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.

    Best Regards,
    Community Support Team_ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.