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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Anonymous
Not applicable

@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

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

@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

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 @Anonymous,

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors