Forum Discussion
Forward Forecast (Moving Average) based on Cumulative Count Measure
- 4 years ago
Hi Anonymous
Thanks for your reply.
I find the formula it uses involves recursion. However, DAX language doesn't support recursion.
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous
I have not used this software, so not quite understand the formula Alteryx uses to calculate the moving average forecast for headcount. Can you describe how the result you want is calculated? If you do it manually instead of using Alteryx.
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
hi v-xiaotang ,
I've added an excel file (Formula.xlsx) with a formula that calculates the moving average forecast in Excel to the dropbox folder: https://www.dropbox.com/sh/2kw6iplladj84a3/AABJ3N6vfeyw-JxEddf2Hvl-a?dl=0
Here you can see a screenshot of the formula I used in Excel:
This is the formula:
=ROUND(IF(H28="";AVERAGE(IF(H27="";J27;H27);IF(H26="";J26;H26);IF(H25="";J25;H25);IF(H24="";J24;H24);IF(H23="";J23;H23);IF(H22="";J22;H22));"");5)I would like to recreate a similar formula in Power BI to calculate the moving average forecast in my dashboard. I hope this makes it clearer. If not, please let me know and I'll provide more detailed information.
Best,
Matisse
- v-xiaotang4 years ago
Community Support
Hi Anonymous
Thanks for your reply.
I find the formula it uses involves recursion. However, DAX language doesn't support recursion.
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous4 years agoNot applicable
hi v-xiaotang ,
does this mean it's impossible to calculate the moving average forecast in Power BI?
I get an error message if I try to open your file:
Seems my Power BI version is outdated. Unfortunately, I cannot update it myself. I need to wait for my company to do this. Is there a way I can solve this?
Best,
Matisse
- v-xiaotang4 years ago
Community Support
Hi Anonymous
Yes, it's impossible to calculate the value involves recursion with DAX. Besides, you can click Close button, then the file will open.
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.