Forum Discussion

MKBE's avatar
MKBE
New Member
2 years ago
Solved

SAMEPERIODLASTYEAR not working

Hi

 

I have an issue with the function SAMEPERIODLASTYEAR

I have reduced my dataset to the minimum to clear all potential inteferences but still

 

My measure :

Revenue Y-1 = CALCULATE(SUM('DWH FactImpressions'[AdserverRevenueRTB]), SAMEPERIODLASTYEAR('DimDate'[DateTime]))
 
DimDate contains all dates in 2023 and 2024
   

 

It's link to the Fact on DimPublicityDateId = DimDateID
I have 2023 data 
 
The model 

 

 

But the outcome is the following one :

 

 

Thanks for your help

Matt

 

2 Replies