Hello there,

I’m working through this video https://portal.enterprisedna.co/courses/195681/lectures/2989715 of Sam’s on the calculate function. He refers to Total Sales but for the example below, I’ll use Total Quantity. Could somebody please tell me why the second DAX expression yields incorrect results? I thought for best practices purposes I’ll explicitly state the Filter function… but the calculated answer is wrong.

Total Quantity LY (right) = CALCULATE([Total Quantity], SAMEPERIODLASTYEAR(Dates[Date]))

Total Quantity LY (wrong) = CALCULATE([Total Quantity], **Filter(Dates, SAMEPERIODLASTYEAR(Dates[Date]))**)

Many thanks,

Michelle