Forum Discussion

dp32's avatar
dp32
Icon for Helper I rankHelper I
6 years ago
Solved

Filter year/quarter in a calculation

I want to filter the current years quarter in a calculation.
Currently I am using two filters like this:

A02 = CALCULATE(A01, FILTER(PT, [PTDate].[Year]=YEAR([ActualDate])), FILTER( PT, [PTDate].[QuarterNo]=QUARTER([ActualDate] )))

Is there a better way to catch the year and quarter reference at once?

4 Replies