Guidelines on coding time transformations in SDMX

Last modified by Artur K. on 2026/05/29 14:28

Document card
Download document

1. Problem Statement

Time transformation is defined as a time-related operation performed on a time series, solely involving observations of that time series. Examples of such time transformations are growth rates, cumulative sums over several periods and moving averages.

To express a time transformation, three elements are required: the type of transformation, the number of periods involved and the length of each period. Even though in theory you could express the base value and the transformation applied, it is much more practical, and in many cases sufficient in statistical data exchange, to transmit the time-transformed values themselves.

The operation to be coded can be expressed generically as such: For value V the transformation T was applied over P periods with frequency F.

Examples:

StatementTPF
Quarter on quarter growth rateGrowth rate2Q
Contribution to growth over 1 year (quarterly data)Contribution to growth4Q
Contribution to growth over 1 year (annual data)Contribution to growth1A
3 months moving averageMoving average3M
Annual index (reference year=100)1Index1A

This guideline describes two methods that may be used to code a time transformation:

  1. A normalised, multi-concept approach that is described in section SDMX CONCEPTS FOR TIME TRANSFORMATIONS. The overall time span involved in the time transformation depends on the number of periods stated and the frequency of a series.
  2. A denormalised, compound concept approach that is described in section COMPOUND CODING FOR TIME TRANSFORMATIONS. The overall time span involved in the time transformation does not necessarily depend on the number of periods stated and the frequency of a series.

Both of these methods are included as separate use cases as served by each method. The aim of this document is to demonstrate that guidance and a standard approach is available and promoted for each use case. The use cases are described in the related sections.

Further recommended code values for expressing general statistical concepts such as "not applicable", etc., can be found in section “Generic codes” of the "Guidelines for the creation and management of SDMX Cross-Domain Code Lists" (to be found under “Guidelines” on the official SDMX website2).

2. SDMX Concepts for Time Transformations

SDMX defines two cross domain concepts for the purpose of coding time transformations: Time transformation type (ID TIMETRANS_TYPE) and time transformation periods (ID TIMETRANS_PER). The concept TIMETRANS_TYPE is coded with a cross domain code list. The concept TIMETRANS_PER is coded with a coded list of integers.

2.1 Time Transformation Type

Definition: This concept provides coded information about time-related transformation types of time series.

Concept ID: The concept ID is TIMETRANS_TYPE.
Code List Name: Code list for Time Transformation Type.
Code List ID: CL_TIMETRANS_TYPE.
Established international standard(s) used as input for the code list: None.

Version: 1.0, 15 September 2016

Recommended code valueRecommended code descriptionAnnotation
NNon transformedTIMETRANS_PER is always 1, since a non-transformed number covers by definition a single period
AAverageMoving average, i.e. an operation that preserves the frequency of the series
CCumulated sum 
DDifference 
DDDifference, second orderA second order difference is the delta of deltas
FGrowth rate, flow over stock 
FCContribution to growth, flow over stock 
GGrowth rate 
GCContribution to growth 
IIndexIn the usual case, the index is fixed to 100 for a specific reference period, in most cases a year. It is recommended that the DSD contains an additional attribute BASE_PER (type ObservationalTimePeriod), which specifies the reference period of the index. In special cases (e.g. National Accounts chain linking), the index is fixed to a value different to 100 in the reference year. In these cases the BASE_PER attribute is even more important.
LAAnnualised levelsThis relates to stock versus flow series. For example, many countries publish their Quarterly National Accounts (QNA) at quarterly level, which means that annual Gross Domestic Product (GDP) is the sum of the four quarters, whereas some countries publish their QNA at annual level (e.g. US), which means that annual GDP is the average of the four quarters. In order to present quarterly data in comparable levels across countries and to derive zone aggregates, quarterly data expressed at quarterly levels are “transformed” to annual levels (i.e. multiplied by four) and have this code.
SShiftedThe time series was moved back or forth in time. This may for instance be used when non-calendar year series are aligned to the calendar year using certain estimation formulas.
_OOther transformationThis code is taken from the guidelines on generic codes, specifying "Other". In that context it should be used if more complex transformations are applied. An explanation of the transformation or a transformation script should be given in a comment field.

2.2 Time Transformation Periods

Definition: This concept provides information about the number of periods used for a time-related transformation of the time series.

Concept ID: The concept ID is TIMETRANS_PER.
Code List Name: Code list for Time Transformation Periods.
Code List ID: CL_TIMETRANS_PER.
Established international standard(s) used as input for the code list: None.

Version: 1.0, 15 September 2016

Recommended code valueRecommended
code description
Annotation
1One 
2Two 
etc.etc. 

2.3 Relation of transformation coding to transformation rules

Transformation can also be expressed with transformation rules using a syntax such as the Validation and Transformation Language (VTL). Following the transformation graph model behind VTL, the transformation coding suggested in this guideline can be seen complementary with using transformation rules in VTL. The idea is that a coded non-transformed time series is transformed using a VTL rule and the result is then coded again with transformation codes for further data exchange. This principle is shown in the graph below:

1769510498202-796.png

Using the two concepts as suggested above for coding the type of transformation applied and the number of periods covered will additionally ensure that the parameters used for the formula are directly used in the coding of the resulting series. Thus no complex mapping is needed. The transformation applied is linked to the transformation type concept and the number of periods used for the calculation is linked to the transformation periods concept.

Example:

The formula for a simple annual growth rate can be expressed as follows:3

1769510529532-579.png

A growth rate over P years in year T is the difference between the current year value and the value P years ago related to the value P years ago; with G being the growth rate, V being the absolute value, T being the time (year) and P the number of periods.

The growth rate formula can be expressed in VTL and linked to transformation type G. The year T is linked to the respective year in the time series and the parameter P is linked to the transformation period concept.

Example:

Year →2010201120122013
GDP Level500505510505
Growth rate,
period on period
 0.01000.0099-0.0098
Formula 1769510625588-573.png1769510654674-828.png1769510676535-250.png
Growth rate,
over 2 periods
  0.02000.0000
Formula  1769510701118-480.png1769510718908-350.png

When looking at the formulas, you can see that the same parameters that are used to call a transformation service can be used to code the resulting series, which makes it very easy for data processing systems to ensure consistency between calculations and coding of results:

Year →2011

Transformed series:

REF_YEAR → 2011

OBS_VALUE → 0.0100

TRANS_TYPE → G (Formula / VTL function)

TRANS_PER → 1

GDP Level505
Growth rate,
period on period
0.0100
Formula1769510755278-324.png

This is especially useful when only transformed series should be exchanged and level series or transformations are not subject to exchange. An example could be GDP growth rates, where for early estimates often level series are still under embargo, whereas growth rates are publishable.

2.4 Recommendation

Where possible, it is recommended to use the above solution with the two concepts TIMETRANS_TYPE and TIMETRANS_PER to express time transformations because:

  • this method separates the type of transformation and the number of periods involved, therefore the coding of time transformation is simpler with no redundancy;
  • it is possible to add extra concepts if required without introducing ambiguity;
  • the coded transformations can be linked directly with transformation formulas.

3. Compound coding for time transformations

3.1 Known Limitations

The normalised approach as presented above does not support the definition of mixed-frequency time transformations – like monthly series of annual growth rates – since there is only a single frequency dimension available. This also means that when annual growth rates are expressed in a quarterly dataset, the time transformation period would need to be modified (i.e. when frequency changes from A to Q, the number of periods need to be quadrupled).

A "transformation frequency" might be added to keep the normalised approach also for those cases.

It also does not allow to directly code complex transformations, like transforming already transformed series (like the period-on-period growth rate of a four-period cumulative sum). For that case it is recommended to use the generic code "_O - Other" to specific that another transformation has been applied and provide the explanation or the transformation script in a comment field.

However, both of these use cases may lead to a quite complex data structures or issues if various different complex transformations should be coded. Thus an alternative solution is presented in chapter 3 for cases where these use cases need to be covered and additional concepts should not be added to the data structure.

In case the mixed frequencies or complex transformations as outlined above are needed in a simpler way and normalisation does not need to be strictly enforced, a composite code list CL_TIMETRANS may be created.

The number of periods in the code follows the frequency of the series unless stated otherwise. Example: code G3Y refers to a three-year growth rate, irrespective of the series frequency. For complex transformations, the codes that would be used for the respective transformations can be concatenated and separated by an underscore4.

Example for composite CL_TIMETRANS:

Recommended code valueRecommended code descriptionAnnotation
NNon transformed data 
A22-period moving averagePeriod on period
A33-period moving average 
A44-period moving average 
A66-period moving average 
A1212-period moving average 
C33-period cumulated sum 
C44-period cumulated sum 
C66-period cumulated sum 
C1212-period cumulated sum 
C1616-period cumulated sum 
D2Differences, period on period, first order 
DDDifferences, period on period, second order 
D4Difference, period on 4 periods, first order 
F2Growth rate, flow over stock, over two periodsPeriod on period
F3Growth rate, flow over stock ,over 3 periods 
F4Growth rate, flow over stock over 4 periods 
F6Growth rate, flow over stock over 6 periods 
F12Growth rate, flow over stock over 12 periods 
FO2Contribution to growth rate, flow over stock, over two periodsPeriod on period
FO3Contribution to growth rate, flow over stock, over 3 periods 
FO4Contribution to growth rate, flow over stock, over 4 periods 
FO6Contribution to growth rate, flow over stock, over 6 periods 
FO12Contribution to growth rate, flow over stock, over 12 periods 
FO16Contribution to growth rate, flow over stock, over 16 periods 
G2Growth rate, over two periodsPeriod on period
G3Growth rate over 3 periods 
G4Growth rate over 4 periods 
G6Growth rate over 6 periods 
G10Growth rate, over 10 periods 
G12Growth rate over 12 periods 
GRGrowth rate, over reference year 
GO2Contribution to growth rate, over 2 periodsPeriod on period
GO3Contribution to growth rate, over 3 periods 
GO4Contribution to growth rate, over 4 periods 
GO6Contribution to growth rate, over 6 periods 
GO12Contribution to growth rate, over 12 periods 
LAAnnualised levelsThis relates to stock versus flow series. For example, many countries publish their QNA at quarterly level, which means that annual GDP is the sum of the four quarters, whereas some countries publish their QNA at annual level (e.g. US), which means that annual GDP is the average of the four quarters. In order to present quarterly data in comparable levels across countries and to derive zone aggregates, quarterly data expressed at quarterly levels are “transformed” to annual levels (i.e. multiplied by four) and have this code.
G1YGrowth rate, over 1 year 
F1YGrowth rate, flow over stock, over 1 year 
D1YDifference, over 1 year 
G3YGrowth rate, over 3 years 
G4YGrowth rate, over 4 years 
GC5YCompound growth rate, over 5 years 
GC10YCompound growth rate, over 10 years 
GO1YContribution to growth rate, over 1 year 
C1YCumulated sum, over 1 year 

The use of codes like G3Y introduces redundancy in the code list. G3Y equals G36 for monthly data, G12 for quarterly data and G3 for annual data. Thus introducing such extensions should be well justified by solid use cases and DSD guidelines should explain which of the two possibilities (GxY or Gx) are preferred and why. Machine-to-machine queries, formulas, validation rules or coding templates may require mappings between those possibilities, taking into account both the frequency of a series and the transformation code.

4. Annex: coded examples

The table below shows coding example using all 3 options lined out above.

StatementNormalised5Type+PeriodType+Period+Freq
Level series (non transformed data)

FREQ=A or Q or M …
TYPE=N
PER=1

FREQ=A or Q or M …
TIMETRANS=N

FREQ=A or Q or M …
TIMETRANS=N

Quarter on quarter growth rate

FREQ=Q
TYPE=G
PER=1

FREQ=Q
TIMETRANS=G1

FREQ=Q or M …
TIMETRANS=G1Q

Contribution to growth over 1 year (quarterly data)

FREQ=Q
TYPE=GC
PER=4

FREQ=Q
TIMETRANS=GC4

FREQ=Q
TIMETRANS=GC1Y

Contribution to growth over 1 year (annual data)

FREQ=A
TYPE=GC
PER=1

FREQ=A
TIMETRANS=GC1

FREQ=A
TIMETRANS=GC1Y

3 months moving average

FREQ=M
|TYPE=A
PER=3

FREQ=M
TIMETRANS=A3

FREQ=Q or M …
TIMETRANS=A3M

Annual index

FREQ=A
TYPE=I
PER=1

FREQ=A
TIMETRANS=I1

FREQ=A or Q or M …
TIMETRANS=I1Y


  1. ^ Note that for the case of an index, it is useful to specify the reference base period in an additional attribute (see concept BASE_PER specified in the SDMX Glossary).
  2. ^ http://sdmx.org/
  3. ^ Note: often growth rates are expressed as percentage growth, in which case the value is multiplied with 100%. This is however not relevant for this guideline and is left out for simplicity.
  4. ^ Example:
    G1_C4 Growth rate, period on period, over 4-period cumulated sum
  5. ^ For sake of readability the prefix TIMETRANS_ was not put in the table. The concepts are in fact called TIMETRANS_TYPE and TIMETRANS_PER.

© Semantic R&D Group, 2026