Forum Discussion
need help with a future calculation
- Anonymous2 years ago
Hi Krijgersss ,
According to your statement, I think you want to forecast the sales based on last month sales.
I suggest you to try my workaround.
Data model:
Measure:
Days Count = CALCULATE(DISTINCTCOUNT('Calendar'[Date]))Forecast Sales based on last month = CALCULATE(SUM('Table'[Sales]),PREVIOUSMONTH('Calendar'[Date])) / CALCULATE(DISTINCTCOUNT('Calendar'[Date]),PREVIOUSMONTH('Calendar'[Date])) * [Days Count]Result is as below.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
basicly i want the revenu of last month per day calculated on next month so for example february its 29,000 let say 1,000 per day than march will be 31,000 because february is 29days a 1,000 perday so my prognose/ future calculation will be 2 more days +1,000 is 31,000
Hi Krijgersss ,
According to your statement, I think you want to forecast the sales based on last month sales.
I suggest you to try my workaround.
Data model:
Measure:
Days Count = CALCULATE(DISTINCTCOUNT('Calendar'[Date]))Forecast Sales based on last month =
CALCULATE(SUM('Table'[Sales]),PREVIOUSMONTH('Calendar'[Date])) / CALCULATE(DISTINCTCOUNT('Calendar'[Date]),PREVIOUSMONTH('Calendar'[Date])) * [Days Count]
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.