Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Week inclusion in SamePeriodLastyear

Hi all,   I have an issue with the 'Sameperiodlastyear' DAX formular. my initial data table looks something like this:   Date Start of the week Year week sales 19.05.2019 14.05.2019 2...
  • Anonymous's avatar
    Anonymous
    6 years ago

    Greg_Deckler Thanks for the tip. I will try it later on.

     

    I found another way that works as well.

     

    weeklysales = calculate([ValueTotalCategory];Filter(ALL('Date');'Date'[CalendarYear]=SELECTEDVALUE('Date'[CalendarYear])-1 && 'Date'[Week]=SELECTEDVALUE('Date'[Week])))