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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!