Forum Discussion

PeterL1's avatar
PeterL1
Helper I
8 years ago
Solved

Difficulty with SAMEPERIODLASTYEAR

Hi,    To try and minimize the amount of data from my database import to Power Bi, i have summarized my sales data to week numbers and years (this is how we analyse reports anyways and not by days)...
  • RolandsP's avatar
    8 years ago

    Hi,

    You can generate Start of week or End of week date and use SAMEPERIODLASTYEAR with that date. Please note that you need to create Date table to be able to use SAMEPERIODLASTYEAR and other Time Intelligence functions.