Forum Discussion
Rolling Average
- Anonymous4 years ago
Hi SunilRaj ,
I created some data:
Here are the steps you can follow:
1. Create calculated column.
Year = YEAR('Table'[Date])2. Create measure.
Measure = var _select=SELECTEDVALUE('Table'[Date]) return AVERAGEX( FILTER( SUMMARIZE(ALL('Table'), 'Table'[Date],'Table'[Month], "Avg value",AVERAGE('Table'[amount])), 'Table'[Date]<=_select&&'Table'[Month]=MAX('Table'[Month])), [Avg value])3. Result:
If you need pbix, please click here.
If I have misunderstood your meaning, please provide your desired output and your pbix without privacy information.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi SunilRaj ,
I created some data:
Here are the steps you can follow:
1. Create calculated column.
Year = YEAR('Table'[Date])
2. Create measure.
Measure =
var _select=SELECTEDVALUE('Table'[Date])
return
AVERAGEX(
FILTER(
SUMMARIZE(ALL('Table'),
'Table'[Date],'Table'[Month],
"Avg value",AVERAGE('Table'[amount])),
'Table'[Date]<=_select&&'Table'[Month]=MAX('Table'[Month])),
[Avg value])
3. Result:
If you need pbix, please click here.
If I have misunderstood your meaning, please provide your desired output and your pbix without privacy information.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly