The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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:
User | Count |
---|---|
65 | |
62 | |
60 | |
53 | |
28 |
User | Count |
---|---|
181 | |
82 | |
67 | |
48 | |
44 |