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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Shravan133
Super User
Super User

Forecast data error - timeline not consistent

Hi, 

I am trying to forecast growth of DB size by dates in a Line Chart. But i get an error saying the timeline is not consistent. Is there a solution to this?

Shravan133_0-1723434855614.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi Ritaf1983 ,thanks for the quick reply, I'll add more.

Hi @Shravan133 ,

Regarding your problem, I think the problem occurs because the date column in your original data is not continuous.The forecast function requires consecutive dates.

vzhouwenmsft_0-1725351098907.png

vzhouwenmsft_1-1725351115328.png

You need to create a date table containing consecutive dates and merge the data from your original data table into it.

Table 2 = 
ADDCOLUMNS(CALENDAR(DATE(2024,1,1),DATE(2024,12,31)),"value",
VAR _result = SUMX(FILTER('Table',[Date] = EARLIER([Date])),[Value]) RETURN IF( ISBLANK(_result),0,_result))

vzhouwenmsft_2-1725351823456.png

vzhouwenmsft_3-1725351839515.png

 

Best Regards,
Wenbin Zhou

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi Ritaf1983 ,thanks for the quick reply, I'll add more.

Hi @Shravan133 ,

Regarding your problem, I think the problem occurs because the date column in your original data is not continuous.The forecast function requires consecutive dates.

vzhouwenmsft_0-1725351098907.png

vzhouwenmsft_1-1725351115328.png

You need to create a date table containing consecutive dates and merge the data from your original data table into it.

Table 2 = 
ADDCOLUMNS(CALENDAR(DATE(2024,1,1),DATE(2024,12,31)),"value",
VAR _result = SUMX(FILTER('Table',[Date] = EARLIER([Date])),[Value]) RETURN IF( ISBLANK(_result),0,_result))

vzhouwenmsft_2-1725351823456.png

vzhouwenmsft_3-1725351839515.png

 

Best Regards,
Wenbin Zhou

Ritaf1983
Super User
Super User

Hi @Shravan133 

Based on the image you’ve shared, it looks like the line chart is displaying some unexpected patterns. The zigzag pattern and sharp drops or spikes in the data suggest there might be some issues related to the data itself.

Observations:

  1. Erratic Pattern: The chart shows a zigzag pattern, which could indicate that the data includes sudden increases or decreases. This may be due to anomalies or irregularities in the data.

  2. Negative Growth Values: There are negative values in the chart, which could suggest that the calculation of growth sometimes results in negative numbers. This might happen due to data entry issues, unexpected data points, or an actual decrease in the database size.

Potential Solutions:

  1. Review the Data for Anomalies:

    • Check the data to ensure there are no gaps, sudden spikes, or drops that might be causing these unusual patterns. It’s important to verify that the dates and corresponding growth values are accurate and consistent.
  2. Consider a Cumulative Sum:

    • Instead of plotting individual growth values, you might want to consider using a cumulative sum of growth over time. This can provide a clearer view of the overall trend and make it easier to identify long-term patterns rather than focusing on individual fluctuations.
  3. Data Smoothing Techniques:

    • If the fluctuations are too pronounced, applying a smoothing technique, such as a moving average, might help. This approach can make trends more apparent and reduce the visual noise caused by erratic data points.
  4. Investigate Outliers:

    • Take a closer look at any outliers or unusual data points that could be skewing the visualization. You might temporarily exclude these outliers to see if the overall trend becomes more stable.
      If this post helped, please consider Accepting it as the solution to help the other members find it more quickly
    •  
Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.