Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ganenthra94
Helper I
Helper I

Help in forecasting for MTD

Hi there, been stuck with this for a couple of days now and would like to know how to solve it. 

 

I need to determine the forecast of sales for a particular month based on the average MTD sales. So for example if sales from the 1st of May to the 20th of May is 300,000. The average per day would be 15,000 and the forecast for the entire month would be 450,000.

 

Any help on this would be greatly appreciated. Thank you very much. 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@ganenthra94 , try

new measure =

Var  _avg = CALCULATE(AverageX(values('DAte'[Date]),CALCULATE(SUM(Sales[Sales Amount])),DATESMTD('Date'[Date]))

return

_avg * Day(eomonth(Max('Date'[Date]),0))

View solution in original post

2 REPLIES 2
ganenthra94
Helper I
Helper I

Thank you very much @amitchandak, worked as mentioned.

amitchandak
Super User
Super User

@ganenthra94 , try

new measure =

Var  _avg = CALCULATE(AverageX(values('DAte'[Date]),CALCULATE(SUM(Sales[Sales Amount])),DATESMTD('Date'[Date]))

return

_avg * Day(eomonth(Max('Date'[Date]),0))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors