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
Could you share a sample file for us to find the reason?
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 ,
Thanks for your reply!
For some reason I can't upload files to this forum directly. So I've uploaded them to Dropbox. This is the link:
https://www.dropbox.com/sh/2kw6iplladj84a3/AABJ3N6vfeyw-JxEddf2Hvl-a?dl=0
Following this link you can find an excel spreadsheet with dummy data, a sample Power BI dashboard and a sample Alteryx workflow (all based on the dummy data).
My goal is to create a Moving Average Forecast for the Headcount. It's easy to do this in Alteryx using the Multi-Row-Formula-Tool, but I don't know how to do this in Power BI. The screenshot shows the result in Alteryx, that I would like to re-create in Power BI in order to show it on a chart:
Power BI:
Workflow:
And this is how the Multi-Row-Formula-Tool in Alteryx is configured:
I would be grateful for any idea or hint on how to solve this.
Thanks in advance.
Best,
Matisse
ps: amitchandak maybe the uploaded sample dashboard & worklfow make my problem and the desired solution clearer than my description in my initial post
- v-xiaotang4 years ago
Community Support
Hi Anonymous
Thanks for your reply.
It seems that in measure [MovAvg_Headcount], the table in filter function is not same as the table in the other 2.
I will continue to find out the exact reason and the correct [MovAvg_Headcount].
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
thanks v-xiaotang !
I didn't even realize that there is something wrong with the measure [MovAvg_Headcount]. I thought it works, but thanks for letting me know.
[MovAvg_Headcount] calculates the moving average for the headcount (meaning the historic data). Would you also have an idea on how to create another measure (or calculated column) to calculate the moving average forecast for headcount (like what I did in Alteryx)? I actually don't really need the moving average for the historic headcount. I just created the [MovAvg_Headcount] measure, hoping that it would help to calculate the moving average forecast.
- v-xiaotang4 years ago
Community Support
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.