Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I am having an issue extracting the latest 4 points of a measure. The measure I used is a rolling average and its function is as follows:
Moving_Average =
Solved! Go to Solution.
Hi Jimmy,
Thanks for answering.
Applying Filter function actually interrupt with the moving average and turn the output back to standalone points.
But applying the filter directly without the Filter function seem to work in this case.
Result =
VAR Last_4_Roll_4 =
CALCULATE ( [Moving_Average], 'table'[Quarter_Order] <= 4 )
RETURN
Last_4_Roll_4
Thanks,
TS
@Anonymous,
Have you solved your issue by now? If you have, could you please help mark the correct answer to finish the thread? Your contribution will be much appreciated.
Regards,
Jimmy Tao
Hi TXTS23,
Modify your measure as below and check if it can work:
Result =
VAR Last_4_Roll_4 =
CALCULATE ( [Moving_Average], FILTER ( 'table', 'table'[Quarter_Order] <= 4 ) )
RETURN
Last_4_Roll_4
Regards,
Jimmy Tao
Hi Jimmy,
Thanks for answering.
Applying Filter function actually interrupt with the moving average and turn the output back to standalone points.
But applying the filter directly without the Filter function seem to work in this case.
Result =
VAR Last_4_Roll_4 =
CALCULATE ( [Moving_Average], 'table'[Quarter_Order] <= 4 )
RETURN
Last_4_Roll_4
Thanks,
TS
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 58 | |
| 45 | |
| 41 | |
| 21 | |
| 18 |