Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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:
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.