Skip to main content
Question

Unexpected Linear Interpolation in Time Series Calculation

  • November 21, 2025
  • 2 replies
  • 18 views

Forum|alt.badge.img

During the calculation of adding two time series, if one of them has no value, will the calculated timesseries give me some interpolated value?

In the example below, the ‘Error Intern’ series has a value of 2252, but in ‘Total Down Time’ I’m getting 2756.64, which is incorrect—it should also be 2252.

Why is it still giving me a linear interpolation value even though I selected the interpolation type as ‘step’?


 

 

2 replies

Dinesh Makked
Committed
Forum|alt.badge.img

Have you tried interpolating each time series separately and then adding them up? 

 


Hi ​@Mansoor Ahmed

That is a very good question! 

The interpolation that you can select in the user interface is performed only for the visualisation of the time series in the Charts. It does not apply for calculations :) 

We have a small bug, that interpolation visualisation does not work for Cognite Time Series. We have a fix that will be released next week! 

The algorithm that performs addition of two time series together, reindex time series so that data points could be added together and performs linear interpolation. It does not backfill missing data points with 0 value. 

Charts is using Cognites Industrial Data Science Library for calculations. It is an open source project that you can find here and the relevant documentation can be found here

Have a nice day! 

Neringa