Hi, For me, this works:
Assuming a table with columns Date and Amount, the calculated column below does the job :
Amount MAVG =
var sdate=Min(Amounts[Date])+365
var d = 'Amounts'[Date]
var d365 =d-365
var r=
IF(d>=sdate;
SUMX( FILTER('Amounts'; Amounts[Date] <= d && Amounts[Date] > d365);
[Amount] )
/12
)
RETURN
r