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

From version 2.2
edited by Helena K.
on 2026/01/27 13:36
Change comment: There is no comment for this version
To version 1.3
edited by Helena K.
on 2026/01/27 13:32
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -4,15 +4,15 @@
4 4  
5 5  = 1. Problem Statement =
6 6  
7 -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.
7 +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.
8 8  
9 -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.
9 +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.
10 10  
11 -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//.
11 +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//.
12 12  
13 13  Examples:
14 14  
15 -|**Statement**|**T**|**P**|**F**
15 +|Statement|T|P|F
16 16  |Quarter on quarter growth rate|Growth rate|2|Q
17 17  |Contribution to growth over 1 year (quarterly data)|Contribution to growth|4|Q
18 18  |Contribution to growth over 1 year (annual data)|Contribution to growth|1|A
... ... @@ -21,16 +21,16 @@
21 21  
22 22  This guideline describes two methods that may be used to code a time transformation:
23 23  
24 -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.
25 -1. 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.
24 +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.
25 +1. 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.
26 26  
27 -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.
27 +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.
28 28  
29 29  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 website[[~[2~]>>path:#_ftn2]]).
30 30  
31 31  = 2. SDMX Concepts for Time Transformations =
32 32  
33 -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.
33 +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.
34 34  
35 35  == 2.1 Time Transformation Type ==
36 36  
... ... @@ -51,15 +51,15 @@
51 51  |**A**|Average|Moving average, i.e. an operation that preserves the frequency of the series
52 52  |**C**|Cumulated sum|
53 53  |**D**|Difference|
54 -|**DD**|Difference, second order|A second order difference is the delta of deltas
54 +|**DD**|Difference, second order|A second order difference is the delta of  deltas
55 55  |**F**|Growth rate, flow over stock|
56 56  |**FC**|Contribution to growth, flow over stock|
57 57  |**G**|Growth rate|
58 58  |**GC**|Contribution to growth|
59 59  |**I**|Index|In 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.
60 -|**LA**|Annualised levels|This 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.
61 -|**S**|Shifted|The 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.
62 -|**_O**|Other transformation|This 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.
60 +|**LA**|Annualised levels|This 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.
61 +|**S**|Shifted|The 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.
62 +|**_O**|Other transformation|This 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.
63 63  
64 64  == 2.2 Time Transformation Periods ==
65 65  
... ... @@ -81,9 +81,10 @@
81 81  |**2**|Two|
82 82  |**etc.**|etc.|
83 83  
84 -== 2.3 Relation of transformation coding to transformation rules ==
84 +1.
85 +11. Relation of transformation coding to transformation rules
85 85  
86 -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:
87 +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:
87 87  
88 88  
89 89  |(((
... ... @@ -100,8 +100,10 @@
100 100  (VTL)
101 101  )))
102 102  
103 -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.
104 104  
105 +
106 +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.
107 +
105 105  **Example:**
106 106  
107 107  The formula for a simple annual growth rate can be expressed as follows:[[~[3~]>>path:#_ftn3]]
... ... @@ -110,7 +110,7 @@
110 110  
111 111  à 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.
112 112  
113 -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.
116 +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.
114 114  
115 115  **Example:**
116 116  
... ... @@ -141,9 +141,10 @@
141 141  period on period**|0.0100
142 142  |**Formula**|//GT= V2011-V2011-1V2011-1//[[image:file:///C:/Users/axyli/AppData/Local/Temp/msohtmlclip1/01/clip_image007.png]]
143 143  
144 -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.
147 +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.
145 145  
146 -== 2.4 Recommendation ==
149 +1.
150 +11. Recommendation
147 147  
148 148  Where possible, it is recommended to use the above solution with the two concepts TIMETRANS_TYPE and TIMETRANS_PER to express time transformations because:
149 149  
... ... @@ -151,22 +151,23 @@
151 151  * it is possible to add extra concepts if required without introducing ambiguity;
152 152  * the coded transformations can be linked directly with transformation formulas.
153 153  
154 -= 3. Compound coding for time transformations =
158 +1. Compound coding for time transformations
159 +11. Known Limitations
155 155  
156 -== 3.1 Known Limitations ==
161 +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).
157 157  
158 -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).
159 -
160 160  A "transformation frequency" might be added to keep the normalised approach also for those cases.
161 161  
162 -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.
165 +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.
163 163  
164 -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.
167 +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.
165 165  
166 166  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.
167 167  
168 -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 underscore[[~[4~]>>path:#_ftn4]].
171 +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 underscore[[~[4~]>>path:#_ftn4]].
169 169  
173 +
174 +
170 170  Example for composite CL_TIMETRANS:
171 171  
172 172  |**Recommended code value**|**Recommended
... ... @@ -194,7 +194,7 @@
194 194  |FO3|Contribution to growth rate, flow over stock, over 3 periods|
195 195  |FO4|Contribution to growth rate, flow over stock, over 4 periods|
196 196  |FO6|Contribution to growth rate, flow over stock, over 6 periods|
197 -|FO12|Contribution to growth rate, flow over stock, over 12 periods|
202 +|FO12|Contribution to growth rate, flow over stock, over 12  periods|
198 198  |FO16|Contribution to growth rate, flow over stock, over 16 periods|
199 199  |G2|Growth rate, over two periods|Period on period
200 200  |G3|Growth rate over 3 periods|
... ... @@ -205,10 +205,10 @@
205 205  |GR|Growth rate, over reference year|
206 206  |GO2|Contribution to growth rate, over 2 periods|Period on period
207 207  |GO3|Contribution to growth rate, over 3 periods|
208 -|GO4|Contribution to growth rate, over 4 periods|
213 +|GO4|Contribution to growth rate, over  4 periods|
209 209  |GO6|Contribution to growth rate, over 6 periods|
210 210  |GO12|Contribution to growth rate, over 12 periods|
211 -|LA|Annualised levels|This 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.
216 +|LA|Annualised levels|This 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.
212 212  |G1Y|Growth rate, over 1 year|
213 213  |F1Y|Growth rate, flow over stock, over 1 year|
214 214  |D1Y|Difference, over 1 year|
... ... @@ -216,16 +216,16 @@
216 216  |G4Y|Growth rate, over 4 years|
217 217  |GC5Y|Compound growth rate, over 5 years|
218 218  |GC10Y|Compound growth rate, over 10 years|
219 -|GO1Y|Contribution to growth rate, over 1 year|
224 +|GO1Y|Contribution to growth rate, over 1 year        |
220 220  |C1Y|Cumulated sum, over 1 year|
221 221  
222 -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.
227 +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.
223 223  
224 -= Annex: coded examples =
229 +1. Annex: coded examples
225 225  
226 226  The table below shows coding example using all 3 options lined out above.
227 227  
228 -|Statement|Normalised[[(% class="wikiinternallink wikiinternallink" %)**~[5~]**>>path:#_ftn5]]|Type+Period|Type+Period+Freq
233 +|Statement|Normalised[[(% class="wikiinternallink" %)**~[5~]**>>path:#_ftn5]]|Type+Period|Type+Period+Freq
229 229  |Level series (non transformed data)|(((
230 230  FREQ=A or Q or M …
231 231  
© Semantic R&D Group, 2026