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
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:
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 |