Forum Discussion
vdomingueza
9 years agoNew Member
Moving Average on weeks
Hi everyone, I'm trying to calculate moving average on 4 weeks like an Excel formula. The excel formula is calculated as a TAM(Moving Average) in Excel . The dates are the following : ...
vanessafvg
9 years agoCommunity Champion
create a measure
Moving_Average_4_weeks =
CALCULATE (
AVERAGEX ( 'table', 'table'[valor] ),
DATESINPERIOD (
'table'[date]
LASTDATE ( 'table'[date] ),
-4,
week
)
)give this a bash vdomingueza