Forum Discussion
Anonymous
1 year agoNot applicable
3-year rolling average issue
Hi, I have two tables: 1. Date table 2. Table containing data on sorting analysis of residual household waste. We look at this to determine the recycle potential. This table contains the percentag...
Anonymous
1 year agoNot applicable
Hi Anonymous
Please try this measure:
3-year rolling average per subcomponent =
VAR _CurrentYear =
YEAR ( MAX ( 'Datum'[Date] ) )
VAR Jaargemiddelden =
SUMMARIZE (
'Sorteerproeven data SharePoint List',
Datum[Jaar],
"JaarGemiddeldeDeelstroom", [Yearly average per subcomponent]
)
RETURN
CALCULATE (
AVERAGEX ( Jaargemiddelden, [JaarGemiddeldeDeelstroom] ),
FILTER (
ALLSELECTED ( 'Datum' ),
YEAR ( 'Datum'[Date] ) <= _CurrentYear
&& YEAR ( 'Datum'[Date] ) >= _CurrentYear - 3
),
ALLEXCEPT (
'Sorteerproeven data SharePoint List',
'Sorteerproeven data SharePoint List'[Grouping components Residual],
'Sorteerproeven data SharePoint List'[Component],
'Sorteerproeven data SharePoint List'[subcomponent]
)
)
Hope this can help.
Best Regards
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
1 year agoNot applicable
Hi Zhendong, thank you for taking the time to reply! I have tried your measure, however, this gives me the yearly averages rather than the three-year rolling average: