Forum Discussion

jamuka's avatar
jamuka
Helper IV
5 years ago
Solved

DATESYTD doesn't work

Dear all,   I have a report where I track my orders. I created a calendar table based on my dates in my data and marked it as a date table. Normally I can calculate YTD as a measure but due to new...
  • AllisonKennedy's avatar
    5 years ago

    What context and visuals are you using this in?

     

    You can either

    OPTION A: update your formula to use manual reference to TODAY(), such as: 

    YTD =
    CALCULATE ( [New Fulfillment Rate2], YEAR(FactTable[Date]) = YEAR(TODAY()))

     

    or, OPTION B: add a year context to your report by putting a date filter on the page that has 2020 as the max year.