Forum Discussion
remove future dates from sameperiod last year calc
- 5 years ago
so i believe i've found a solution, which, I stumbled upon by accident which was removing the .date
So changing this
Bookings LY (Bk date) = CALCULATE(BOOKINGS[Bookings],SAMEPERIODLASTYEAR('DATESBKGS&ENQS'[Dates-Bkg&Enq].[Date]))
to
Bookings LY (Bk date) = CALCULATE(BOOKINGS[Bookings],SAMEPERIODLASTYEAR('DATESBKGS&ENQS'[Dates-Bkg&Enq]))
Seem to work, I'm guessing it must have something to do with the time intelligence function, but thought i'd post for anyone else who may have a similar querey
so i believe i've found a solution, which, I stumbled upon by accident which was removing the .date
So changing this
Bookings LY (Bk date) = CALCULATE(BOOKINGS[Bookings],SAMEPERIODLASTYEAR('DATESBKGS&ENQS'[Dates-Bkg&Enq].[Date]))
to
Bookings LY (Bk date) = CALCULATE(BOOKINGS[Bookings],SAMEPERIODLASTYEAR('DATESBKGS&ENQS'[Dates-Bkg&Enq]))
Seem to work, I'm guessing it must have something to do with the time intelligence function, but thought i'd post for anyone else who may have a similar querey