Forum Discussion
SAMEPERIODLASTYEAR()
- 10 years ago
This worked:
Users Last Year = CALCULATE(SUM('GA Traffic'[Users]),SAMEPERIODLASTYEAR('GA Traffic'[Date]), AllExcept('GA Traffic', 'GA Traffic'[Date]))
Yes, there definitely is data for last year. If I only use:
SAMEPERIODLASTYEAR('GA Traffic'[Date]), it shows me the date for last year. I'm clueless.
Have you a filter on the two dates? Each measure uses a different column date.
- procyon8210 years agoResolver I
No, I am not using filters
- Anonymous10 years agoNot applicable
SAMEPERIODLASTYEAR, 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.
See the lasts words from the description. What is your filter context?
- procyon8210 years agoResolver I
This worked:
Users Last Year = CALCULATE(SUM('GA Traffic'[Users]),SAMEPERIODLASTYEAR('GA Traffic'[Date]), AllExcept('GA Traffic', 'GA Traffic'[Date]))