Forum Discussion

Lino's avatar
Lino
Frequent Visitor
8 years ago
Solved

Current Year vs Previous Year

Hello everyone   I have a table that contains two fields:   Date Amount   This table contains data of 2016, 2017 and 2018.   My scope is creating a measure called Amount PY using DAX. For ...
  • CrisYan's avatar
    CrisYan
    8 years ago

    You must use SAMEPERIODLASTYEAR() instead of PREVIOUSUEAR(), because the last one returns ALL dates from the last year, and you need the same day shifted one year back (Using SAMEPERIODLASTYEAR()).

     

    Regards!