Skip to main content
cancel
Showing results for 
Search instead 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

Reply
mav_82
New Member

Calculate forecast for a month based on average of completed days in the month

Hi,

 

I need to show a line which has the actual sales by date which have passed in the month and then a dotted line which shows the average sales in the current month * the day of the month. So for example:

 

DateSale
01/09/2021100
02/09/2021200

 

The above are the actual sales, the average will be 150. for future dates i want to create a plot using dotted lines to show something like

 

DateForecast
03/09/2021450 (150*3)
04/09/2021600 (150*4)

 

and so on. Any help will be appreciated

1 ACCEPTED SOLUTION
goncalogeraldes
Super User
Super User

Hello there! You can take advantage of the forecasting tools in Power BI, available in the Analytics pane, found in the Visualizations area of Power BI Desktop. The Analytics pane allows you to add dynamic reference lines to your visuals to provide focus for important trends or insights. 

 

goncalogeraldes_0-1630663541933.png

 

You can create a measure using the AVERAGE() function and use it to plot a line chart and then use the forecasting tool as you please. 

 

Hope this answer solves your problem! If you need any additional help please tag me in your reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️ or give it a kudoe 👍
Thanks!

Best regards,
Gonçalo Geraldes

View solution in original post

1 REPLY 1
goncalogeraldes
Super User
Super User

Hello there! You can take advantage of the forecasting tools in Power BI, available in the Analytics pane, found in the Visualizations area of Power BI Desktop. The Analytics pane allows you to add dynamic reference lines to your visuals to provide focus for important trends or insights. 

 

goncalogeraldes_0-1630663541933.png

 

You can create a measure using the AVERAGE() function and use it to plot a line chart and then use the forecasting tool as you please. 

 

Hope this answer solves your problem! If you need any additional help please tag me in your reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️ or give it a kudoe 👍
Thanks!

Best regards,
Gonçalo Geraldes

Helpful resources

Announcements
Fabric Community Conference

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.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

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