Forum Discussion

mthomas1973's avatar
mthomas1973
Icon for Helper I rankHelper I
5 years ago
Solved

YTD and SAMEPERIODLASTYEAR

Hello all. I hope someone can help.    I am dipping my toes into time intelligent function for the first time and have a result I can't understand.    I have a couple of measures:    ytd actua...
  • amitchandak's avatar
    5 years ago

    mthomas1973 , prefer to use date table

     

    ytd actual = TOTALYTD([Actual],'Date'[Date],"31/03")

     

    Last ytd actual = TOTALYTD([Actual],dateadd('Date'[Date],-1, year) ,"31/03")

     

    To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.