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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Forecast with irregular dates

I have some stock market data for a number of companies. I'm trying to demonstrate a simple forecast function using said data, but Power BI is giving me an error message that reads "Data is too irregular to Forecast". 

 

When I go to more information I get:

"Your data isn't evenly spaced

Forecast can't be created because the timeline isn't evenly spaced. The dates or numbers in a valid timeline must have a consistent gap between consecutive points." 

 

Any ideas on how I might fix this? I have several years worth of data and line chart itself looks just fine. As with most stock market data there is going to be major ups and downs, but in this particular dataset there is still a general upward trend. I've tried to create a second column for an index (thinking it could be some issues with the dates not including holidays and weekends), but that hasn't turned up a valid solution. 

 

Any help / thoughts would be great. 

1 ACCEPTED SOLUTION
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@Anonymous,

Firstly, create a date table that contains all possible and continuous dates, then create relationship between the date table and your original table.

Secondly, merge the date table and your original table based on the date field into a new query.

Thirdly, create line chart using date key of merged table as X-Axis of Line chart, then you will be able to add forecast line. For more details about solving the above error, please review the following blog.

http://www.erikhudzik.com/2017/01/16/power-bi-forecasting-feature-and-when-your-data-is-too-irregular-to-forecast/


Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@Anonymous,

Firstly, create a date table that contains all possible and continuous dates, then create relationship between the date table and your original table.

Secondly, merge the date table and your original table based on the date field into a new query.

Thirdly, create line chart using date key of merged table as X-Axis of Line chart, then you will be able to add forecast line. For more details about solving the above error, please review the following blog.

http://www.erikhudzik.com/2017/01/16/power-bi-forecasting-feature-and-when-your-data-is-too-irregular-to-forecast/


Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks! Works for me. Great explanation via the url.

Hello Lydia, Can you show me where to merge the date table and original table based on the date field into a new query?

 

 

Anonymous
Not applicable

Hi @v-yuezhe-msft,

Thanks for the detailed information and the URL for the example. It looks like that will meet my needs pretty well. 

 

Thanks again!

Jonathan 

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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