Okay, I know there are many that have stumbled across this but I don't see any answers here that I can use. My fiscal year starts in April and I need to calculate a 6-month moving average of sales qty. The problem is, is that my date table starts in APR 2015, and even though I filter out FY15, the result set appears to include it in the values when I only want to start from FY16 onward. Any help on this will be appreciated!!
My calculation is as follows:
Qty 12M Months (act) = CALCULATE (
CALCULATE ( COUNTROWS ( VALUES ( Dates[FYM] ) ), Sales ),
DATESBETWEEN (
Dates[Date],
SAMEPERIODLASTYEAR ( NEXTDAY ( LASTDATE ( Dates[Date] ) ) ),
LASTDATE ( Dates[Date] )
)
)