Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Filter on same day last year

Hello,   Just all the other posts I saw before, I also have been searching the internet/Microsoft forum for a couple hours and couldn't find a case that helped me find a solution.   I am in a car...
  • Stachu's avatar
    Stachu
    7 years ago

    try this measure

    Res Nr Today-1YR = 
    VAR __CurrentDate = TODAY()
    VAR __LastYearDate = EDATE(__CurrentDate,-12)
    RETURN
    CALCULATE([Res Nr], SAMEPERIODLASTYEAR('Date Exp Return'[Date]), RezReporting[Date Booked 2]<__LastYearDate)

    For Jan it gives 3973 which is different than your calculation but it matches nr of rows in RezReporting, booked before 28-01-2018 (based on RezReporting[Date Booked2]), for Jan 2018 (based on RezReporting[Date Exp Return 2])