Apparently it's normal:
The SAMEPERIODLASTYEAR is equivalent to DATEADD(dates, -1, year).
Its biggest year in the date table is 2019, so SAMEPERIODLASTYEAR will show the previous year, i.e. 2018.
Its smallest year in the date table is 2014, so SAMEPERIODLASTYEAR will not show the previous year, i.e. 2013.
Thanks. Why there are no empty rows or 2013 rows in the sameperiodlastyear table?
And why there is no 2013 rows in selectcolumn table and it shows empty rows ?
it works, it moves the date back one year.
you will lose the last year, and you will not see the first year, since it is not in the table.
if your date is early 2014 and late 2023
you will see only 2014 and 2022, and do not see 2013 because it is not in the table
Thanks.But my question is , in the defination of this function was written "Returns a table that contains a column of dates shifted one year back in time from the dates in the specified dates column, in the current context."
Why I can not get this result?
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.
130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.