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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello,
I want to create a new measure so that I can put in a 3 yr rolling/moving average count on a chart that I have plotted as count of unique ID vs Sale Yr. (see chart). For example there would be a dot for 3.6 on 2021 that is the average of [3 (2019)+5(2020)+3(2021)]/3 = 3.6
Note that the "Sale Yr" is of whole number Data type. Here is the chart and table.
Thanks
Solved! Go to Solution.
I figured it out: It should be:
To create a measure for a 3-year rolling average count, you can use the following DAX formula:
This measure calculates the average count of unique IDs for the selected year and the two previous years.
Thanks for such quick reply. I get the following error:
thanks
I figured it out: It should be:
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.