Forum Discussion

DaniZ1's avatar
DaniZ1
Regular Visitor
4 years ago
Solved

DAX YTD function does not work for measure

Dear Power BI experts,   I am attempting to create a budget report with actual and budget figures on a monthly basis for 2022 and want to create a forecast measure, to forecast the remaining months...
  • v-yalanwu-msft's avatar
    4 years ago

    Hi, DaniZ1 ;

    You only could change the measure to it.

    YTD Forecast = SUMX(FILTER(ALL('calendar'),EOMONTH([Date],0)<=EOMONTH(MAX('calendar'[Date]),0)),[Forecast Month])

    The final show:


    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.