Forum Discussion
Cumulative Forecast
Hi there,
I am trying to add a cumulative forecast based on a 1 month rolling average of sales, to create a more accurate representation of the outlook for the next few months.
I have created a 1 month average daily run rate using the following DAX:
The table looks like this (numbers have been changed for confidentiality). As of today (5/5/20), we have sales yesterday but today onwards we do not, hence no revenue on the 5th and 6th May. RR = run rate / **bleep** = cumulative / Rev = Revenue / m = month
Date Revenue YTD **bleep**. Rev. 1mAvgDayRR CumRR
4/5/20 50 3,000 22 2,200
5/5/20 22 2,222
6/5/20 22 2,244
As you can see from the table, my YTD cumulative revenue stops at 3,000 as there are no more sales after the 4th May, but i want to then add the 1mAvgDayRR (1 Month Average Daily Run Rate) value onto that so that on the 5/5/20 i get 3,022, obviously this would have to be done with another measure and hence add another column, that is fine.
I hope someone can help because i am sure this can be done someway!
Hi BUK2020 ,
We can use the IF function to meet your requirement.
Measure = IF( MAX('date table'[Date])<=TODAY(), [YTD Cumulative Revenue],[Cumulative Daily Run Rate])The result like this,
If it doesn’t meet your requirement, could you please show the exact expected result based on the table that we have shared?
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 Replies
- v-zhenbw-msftCommunity Support
Hi BUK2020 ,
We can use the IF function to meet your requirement.
Measure = IF( MAX('date table'[Date])<=TODAY(), [YTD Cumulative Revenue],[Cumulative Daily Run Rate])The result like this,
If it doesn’t meet your requirement, could you please show the exact expected result based on the table that we have shared?
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- v-zhenbw-msftCommunity Support
Hi BUK2020 ,
How about the result after you follow the suggestions mentioned in my original post?
Could you please provide more details or expected result about it If it doesn't meet your requirement?
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.