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 would like to ask you for your help with a DAX formula which would calculate value of future unit sales, based on rolling average of previous 12 month.
See below - there are blue values as history and red ones as rolling average.
I was able to calculate rolling average for historical values but not for future - basically from already calculated values, as the average is rolling.
Note - I do have a calendar table in place which is related to sales data.
Hope it makes sense.
Thank you very much!
What is the solution for this?
Is exactly what I need!
Thank you!
Hi,
I am not sure if I understood your correctly, but I think the numbers are showing 14 months rolling average.
I tried to solve this in Power Query.
Please check the attached file. I do not know how your calendar table looks like, but I hope this helps to provide an idea.
Thanks.
Dear all,
Let me update the topic, as I slightly move on, but still without solution.
To recap - I have been trying to calculate forecast of future sales based sum of rolling average of last 12 months in DAX. Please find below a screenshot from an Excel calculation (formulas + results) -> blue is history, red is forecast:
I put together a formula, which calculates average but slightly incorrectly - I do not know, what the problem is...:
The PBIX file is saved here: https://file.io/buLgvtZ1Asmi
Thank you very much for any hint!
Hi,
Thank you very much for the sample file and solution. You calculation is OK, but I would need something like this preferably in DAX, if it is possible...
Thank you.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 19 | |
| 11 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 20 | |
| 12 | |
| 10 |