Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
I have calculated the last 3 months moving average of sales using the below calculation.
reporting_month | Rolling_sales | 3 month avg | YTD rolling | Month | YTD_Avg |
4/1/2016 0:00 | 41530 | 39695 | 39695 | 1 | 39695 |
5/1/2016 0:00 | 56863 | 40307 | 80002 | 2 | 40001 |
6/1/2016 0:00 | 70280 | 46029 | 126031 | 3 | 42010 |
7/1/2016 0:00 | 81484 | 56224 | 182255 | 4 | 45564 |
8/1/2016 0:00 | 96692 | 69542 | 251797 | 5 | 50359 |
9/1/2016 0:00 | 111264 | 82819 | 334616 | 6 | 55769 |
10/1/2016 0:00 | 127914 | 96480 | 431096 | 7 | 61585 |
11/1/2016 0:00 | 142995 | 111957 | 543053 | 8 | 67882 |
12/1/2016 0:00 | 158568 | 127391 | 670444 | 9 | 74494 |
1/1/2017 0:00 | 172614 | 143159 | 813603 | 10 | 81360 |
2/1/2017 0:00 | 187547 | 158059 | 971662 | 11 | 88333 |
3/1/2017 0:00 | 201112 | 172910 | 1144572 | 12 | 95381 |
Solved! Go to Solution.
Hi, @Msk_2080 ;
Please try it.
YTD = AVERAGEX(DATESYTD(Sales_forescat[reporting_month],"31/3"),[3_month_moving_avg])
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Msk_2080 ;
Please try it.
YTD = AVERAGEX(DATESYTD(Sales_forescat[reporting_month],"31/3"),[3_month_moving_avg])
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Usually when you calculate moving averages you do so based on the absolute values (monthly sales) , not the cumulative values. It sounds like you want to take the average of the average of the cumulative values? Can you please confirm?
User | Count |
---|---|
77 | |
70 | |
70 | |
54 | |
48 |
User | Count |
---|---|
45 | |
38 | |
35 | |
31 | |
28 |