Version 1.3 by Helena K. on 2026/01/27 13:32

Hide last authors
Helena K. 1.1 1 {{box title="**Contents**"}}
2 {{toc/}}
3 {{/box}}
4
5 = 1. Problem Statement =
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.
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.
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//.
12
13 Examples:
14
15 |Statement|T|P|F
16 |Quarter on quarter growth rate|Growth rate|2|Q
17 |Contribution to growth over 1 year (quarterly data)|Contribution to growth|4|Q
18 |Contribution to growth over 1 year (annual data)|Contribution to growth|1|A
19 |3 months moving average|Moving average|3|M
20 |Annual index (reference year=100)[[~[1~]>>path:#_ftn1]]|Index|1|A
21
22 This guideline describes two methods that may be used to code a time transformation:
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.
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.
28
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
Helena K. 1.2 31 = 2. SDMX Concepts for Time Transformations =
Helena K. 1.1 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.
34
Helena K. 1.2 35 == 2.1 Time Transformation Type ==
Helena K. 1.1 36
37 Definition: This concept provides coded information about time-related transformation types of time series.
38
39 **Concept ID: **The concept ID is TIMETRANS_TYPE.
40
41 **Code List Name**: Code list for Time Transformation Type.
42
43 **Code List ID:** CL_TIMETRANS_TYPE.
44
45 **Established international standard(s) used as input for the code list**: None.
46
47 **Version**: 1.0, 15 September 2016
48
49 |**Recommended code value**|Recommended code description|Annotation
50 |**N**|Non transformed|TIMETRANS_PER is always 1, since a non-transformed number covers by definition a single period
51 |**A**|Average|Moving average, i.e. an operation that preserves the frequency of the series
52 |**C**|Cumulated sum|
53 |**D**|Difference|
54 |**DD**|Difference, second order|A second order difference is the delta of  deltas
55 |**F**|Growth rate, flow over stock|
56 |**FC**|Contribution to growth, flow over stock|
57 |**G**|Growth rate|
58 |**GC**|Contribution to growth|
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.
63
Helena K. 1.3 64 == 2.2 Time Transformation Periods ==
Helena K. 1.1 65
66 Definition: This concept provides information about the number of periods used for a time-related transformation of the time series.
67
68 **Concept ID: **The concept ID is TIMETRANS_PER.
69
70 **Code List Name**: Code list for Time Transformation Periods.
71
72 **Code List ID:** CL_TIMETRANS_PER.
73
74 **Established international standard(s) used as input for the code list**: None.
75
76 **Version**: 1.0, 15 September 2016
77
78 |**Recommended code value**|**Recommended
79 code description**|**Annotation**
80 |**1**|One|
81 |**2**|Two|
82 |**etc.**|etc.|
83
84 1.
85 11. Relation of transformation coding to transformation rules
86
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:
88
89
90 |(((
91 Level series
92 )))
93
94 |(((
95 Transformed series
96 )))
97
98 |(((
99 Transformation rule
100
101 (VTL)
102 )))
103
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
108 **Example:**
109
110 The formula for a simple annual growth rate can be expressed as follows:[[~[3~]>>path:#_ftn3]]
111
112 //GT= VT-VT-PVT-P//[[image:file:///C:/Users/axyli/AppData/Local/Temp/msohtmlclip1/01/clip_image001.png]]
113
114 à 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.
115
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.
117
118 **Example:**
119
120 |**Year à**|**2010**|**2011**|**2012**|**2013**
121 |**GDP Level**|500|505|510|505
122 |**Growth rate,
123 period on period**| |0.0100|0.0099|-0.0098
124 |**Formula**| |//GT= V2011-V2011-1V2011-1//[[image:file:///C:/Users/axyli/AppData/Local/Temp/msohtmlclip1/01/clip_image002.png]]|//GT= V2012-V2012-1V2012-1//[[image:file:///C:/Users/axyli/AppData/Local/Temp/msohtmlclip1/01/clip_image003.png]]|//GT= V2013-V2013-1V2013-1//[[image:file:///C:/Users/axyli/AppData/Local/Temp/msohtmlclip1/01/clip_image004.png]]
125 |**Growth rate,
126 over 2 periods**| | |0.0200|0.0000
127 |**Formula**| | |//GT= V2012-V2012-2V2012-2//[[image:file:///C:/Users/axyli/AppData/Local/Temp/msohtmlclip1/01/clip_image005.png]]|//GT= V2013-V2013-2V2013-2//[[image:file:///C:/Users/axyli/AppData/Local/Temp/msohtmlclip1/01/clip_image006.png]]
128
129 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:
130
131 |**Year à**|2011|(% rowspan="4" %)(((
132 **Transformed series:**
133
134 REF_YEAR à 2011
135
136 OBS_VALUE à 0.0100
137
138 TRANS_TYPE à G (Formula / VTL function)
139
140 TRANS_PER à 1
141 )))
142 |**GDP Level**|505
143 |**Growth rate,
144 period on period**|0.0100
145 |**Formula**|//GT= V2011-V2011-1V2011-1//[[image:file:///C:/Users/axyli/AppData/Local/Temp/msohtmlclip1/01/clip_image007.png]]
146
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.
148
149 1.
150 11. Recommendation
151
152 Where possible, it is recommended to use the above solution with the two concepts TIMETRANS_TYPE and TIMETRANS_PER to express time transformations because:
153
154 * this method separates the type of transformation and the number of periods involved, therefore the coding of time transformation is simpler with no redundancy;
155 * it is possible to add extra concepts if required without introducing ambiguity;
156 * the coded transformations can be linked directly with transformation formulas.
157
158 1. Compound coding for time transformations
159 11. Known Limitations
160
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).
162
163 A "transformation frequency" might be added to keep the normalised approach also for those cases.
164
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.
166
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.
168
169 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.
170
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]].
172
173
174
175 Example for composite CL_TIMETRANS:
176
177 |**Recommended code value**|**Recommended
178 code description**|**Annotation**
179 |N|Non transformed data|
180 |A2|2-period moving average|Period on period
181 |A3|3-period moving average|
182 |A4|4-period moving average|
183 |A6|6-period moving average|
184 |A12|12-period moving average|
185 |C3|3-period cumulated sum|
186 |C4|4-period cumulated sum|
187 |C6|6-period cumulated sum|
188 |C12|12-period cumulated sum|
189 |C16|16-period cumulated sum|
190 |D2|Differences, period on period, first order|
191 |DD|Differences, period on period, second order|
192 |D4|Difference, period on 4 periods, first order|
193 |F2|Growth rate, flow over stock, over two periods|Period on period
194 |F3|Growth rate, flow over stock ,over 3 periods|
195 |F4|Growth rate, flow over stock over 4 periods|
196 |F6|Growth rate, flow over stock over 6 periods|
197 |F12|Growth rate, flow over stock over 12 periods|
198 |FO2|Contribution to growth rate, flow over stock, over two periods|Period on period
199 |FO3|Contribution to growth rate, flow over stock, over 3 periods|
200 |FO4|Contribution to growth rate, flow over stock, over 4 periods|
201 |FO6|Contribution to growth rate, flow over stock, over 6 periods|
202 |FO12|Contribution to growth rate, flow over stock, over 12  periods|
203 |FO16|Contribution to growth rate, flow over stock, over 16 periods|
204 |G2|Growth rate, over two periods|Period on period
205 |G3|Growth rate over 3 periods|
206 |**G4**|**Growth rate over 4 periods**|
207 |G6|Growth rate over 6 periods|
208 |G10|Growth rate, over 10 periods|
209 |G12|Growth rate over 12 periods|
210 |GR|Growth rate, over reference year|
211 |GO2|Contribution to growth rate, over 2 periods|Period on period
212 |GO3|Contribution to growth rate, over 3 periods|
213 |GO4|Contribution to growth rate, over  4 periods|
214 |GO6|Contribution to growth rate, over 6 periods|
215 |GO12|Contribution to growth rate, over 12 periods|
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.
217 |G1Y|Growth rate, over 1 year|
218 |F1Y|Growth rate, flow over stock, over 1 year|
219 |D1Y|Difference, over 1 year|
220 |G3Y|Growth rate, over 3 years|
221 |G4Y|Growth rate, over 4 years|
222 |GC5Y|Compound growth rate, over 5 years|
223 |GC10Y|Compound growth rate, over 10 years|
224 |GO1Y|Contribution to growth rate, over 1 year        |
225 |C1Y|Cumulated sum, over 1 year|
226
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.
228
229 1. Annex: coded examples
230
231 The table below shows coding example using all 3 options lined out above.
232
233 |Statement|Normalised[[(% class="wikiinternallink" %)**~[5~]**>>path:#_ftn5]]|Type+Period|Type+Period+Freq
234 |Level series (non transformed data)|(((
235 FREQ=A or Q or M …
236
237 TYPE=N
238
239 PER=1
240 )))|(((
241 FREQ=A or Q or M …
242
243 TIMETRANS=N
244 )))|(((
245 FREQ=A or Q or M …
246
247 TIMETRANS=N
248 )))
249 |Quarter on quarter growth rate|(((
250 FREQ=Q
251
252 TYPE=G
253
254 PER=1
255 )))|(((
256 FREQ=Q
257
258 TIMETRANS=G1
259 )))|(((
260 FREQ=Q or M …
261
262 TIMETRANS=G1Q
263 )))
264 |Contribution to growth over 1 year (quarterly data)|(((
265 FREQ=Q
266
267 TYPE=GC
268
269 PER=4
270 )))|(((
271 FREQ=Q
272
273 TIMETRANS=GC4
274 )))|(((
275 FREQ=Q
276
277 TIMETRANS=GC1Y
278 )))
279 |Contribution to growth over 1 year (annual data)|(((
280 FREQ=A
281
282 TYPE=GC
283
284 PER=1
285 )))|(((
286 FREQ=A
287
288 TIMETRANS=GC1
289 )))|(((
290 FREQ=A
291
292 TIMETRANS=GC1Y
293 )))
294 |3 months moving average|(((
295 FREQ=M
296
297 TYPE=A
298
299 PER=3
300 )))|(((
301 FREQ=M
302
303 TIMETRANS=A3
304 )))|(((
305 FREQ=Q or M …
306
307 TIMETRANS=A3M
308 )))
309 |Annual index|(((
310 FREQ=A
311
312 TYPE=I
313
314 PER=1
315 )))|(((
316 FREQ=A
317
318 TIMETRANS=I1
319 )))|(((
320 FREQ=A or Q or M …
321
322 TIMETRANS=I1Y
323 )))
324
325
326
327 ----
328
329 [[~[1~]>>path:#_ftnref1]] 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).
330
331 [[~[2~]>>path:#_ftnref2]] [[http:~~/~~/sdmx.org/>>url:http://sdmx.org/]]
332
333 [[~[3~]>>path:#_ftnref3]] 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.
334
335 [[~[4~]>>path:#_ftnref4]] Example:
336
337 |**G1_C4**|Growth rate, period on period, over 4-period cumulated sum
338
339
340
341 [[~[5~]>>path:#_ftnref5]] 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