Forum Discussion

Krijgersss's avatar
Krijgersss
Icon for Helper II rankHelper II
2 years ago
Solved

need help with a future calculation

i need some help to make a future calculation. for example in February i sold 28.000 in 28 days so for march the future calculation must say 31.000 because march has 31 days so 1000 x 31. this is a r...
  • Anonymous's avatar
    Anonymous
    2 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 Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.