Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Unexpected behavior Sameperiodlastyear

Hi,   I'm using the function sameperiodlastyear in some measures and they work fine for all periods besides the current month. I would expect to see the MTD value of lastyear's data there but it sh...
  • aj1973's avatar
    aj1973
    5 years ago

    Anonymous 

    Did you make it look like this? dateadd('Date'[Date],-365,day)

    -1 is yesterday , -365 goes back to 12 months.