cancel
Showing results for
Did you mean:

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a \$100 discount. Register Now

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
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))

2 REPLIES 2
Helper I

Thank you very much @amitchandak, worked as mentioned.

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))

Announcements

#### Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

#### Power BI Monthly Update - February 2024

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

#### Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

#### Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors