Skip to main content
Skip table of contents

Data Quality Annotation Using Flags

Concept of Flags

The quality of individual data points, i.e. whether a value is valid, missing, faulty, manually replaced, estimated etc., is annotated in HAKOM TSM per value in the so-called "Flag" information. Flags can be inherited. For example, a formula time series inherits the flags of the underlying time series (referenced in the formula). Flags are also inherited in raster aggregations (for example when aggregating an hourly data for a whole day). In both cases (aggregating multiple time series and or raster aggregations) the worst flag for the same time period dominates all time series value flags involved.

Supported Flags and Their Priorities

The following table shows the list of currently supported flags and their priorities

IDNameInheritance / Aggregation Priority
0NoValue0
20Accounted10

5

Manually Replaced

20

9Valid30
12Schedule40
21Estimated 50
7Faulty60
22Interpolated70
19Missing80

The inheritance priority can be different for specific formula functions with configurable flag handling, such as the TSAA function. Additionally, the prioritization of the flags can be also adjusted in the HAKOM.config.

You can read more about overriding of flag priorities here: Configuration - search for keyword ShiftManuallyReplacedPriority.

Flag aggregation examples

Aggregation behaviour of flags in case aggregation (sum) of two time series:

Time stampInput time series AInput time series BAggregation result
00:00:0010Valid0Missing10Missing
01:00:0020Valid20Accounted40Valid
02:00:0030Valid30Valid60Valid

Aggregation behaviour of flags in case raster aggregation (sum from 15m to 1h) of one time series:

Time stamp (original)Input time seriesTime stamp (aggregated)Aggregation result
00:00:000Missing00:00:0060Missing
00:15:0010Valid
00:30:0020Valid
00:45:0030Accounted

NoValue Flag with aggregation rule "Average"

Upon calculation the average of a dataset, it makes a difference, whether missing zero values are included in the results. The Aggregation rule "Average" includes all values (also zero values with Missing flag, since this flag does not necessarily mean no data exists in the given time range), but values with Flag "NoValue" (i.e. timestamps that were never set to any value) are excluded from the average result.

Time stamp (original)Input time seriesTime stamp (aggregated)Aggregation result
00:00:000Missing00:00:0010Missing
00:15:0010Valid
00:30:0020Valid
00:45:000NoValue

Explanation: the value 10 is being calculated with the following logic: (0 (Missing) + 10 (Valid) + 20 (Valid)) / 3, since the 4th value is a NoValue.

We recommend the following video under Video Tutorials:

  • Behaviour of Flags During Data Aggregation
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.