Forum Discussion
procyon82
10 years agoResolver I
SAMEPERIODLASTYEAR()
I use Revenue Last Year = CALCULATE(SUM('GA Ecommerce'[Revenue]),SAMEPERIODLASTYEAR('GA Ecommerce'[Date])) to create a column to have my last year's revenue in reference to what is displayed on m...
- 10 years ago
This worked:
Users Last Year = CALCULATE(SUM('GA Traffic'[Users]),SAMEPERIODLASTYEAR('GA Traffic'[Date]), AllExcept('GA Traffic', 'GA Traffic'[Date]))
nikil
10 years agoResolver I
Formula looks right, are you sure there is data for multiple years ?
procyon82
10 years agoResolver I
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.
- Anonymous10 years agoNot applicable
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?