﻿# OECD Data Explorer: preserve SDMX dimensions during export

OECD SDMX exports retain dimensions, units and code lists. Preserve the query structure before reshaping observations into model features.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/data-guide-oecd-sdmx-dimension-codes/
Language: en

OECD Data Explorer is useful for finding structured statistical series and generating an inspectable selection. The [Explorer](https://data-explorer.oecd.org/) is the discovery surface; a reproducible extraction also needs the dataflow and structure behind the visible table. This profile concerns technical preparation, without drawing policy or investment conclusions from the observations.

## Save the dataflow and dimension order

The [OECD API guide](https://www.oecd.org/en/data/insights/data-explainers/2024/09/api.html) uses agency, dataset and version identifiers with a dimension key. Empty positions and combined values have specific meanings. Preserve the full request instead of rebuilding it from displayed column labels. A different order can select a different population while still returning a valid statistical table.

## Retrieve structure before pivoting values

The [SDMX standard](https://sdmx.org/) separates observations from the structures and code lists that explain them. Keep codes alongside labels, including frequency, unit and adjustment attributes. A monthly adjusted series and an annual unadjusted series are not interchangeable because they share a topic title. Resolve these dimensions before flattening the response into a wide dataframe.

## Preserve missing observations and flags

Exporting numeric values alone can discard status information and units. Keep available observation attributes and distinguish absence from zero. Inspect whether a derived column mixes measurement conventions or multiple series. An editorial validation can check that each chosen series key has at most the expected observation for a period before any aggregation conceals duplicate selections.

## Control revisions and time leakage

The API format and dataset structure version do not necessarily identify a historical data vintage. Save retrieval time and the selected response. If earlier periods were revised, describe a retrospective study as using revised observations unless documented vintages are available. A temporal holdout should follow information availability, not only the period printed beside a value.

## Explain the resulting statistical population

Document the dataflow, keys, units, time range and reshaping rule. Keep methodological publications connected through [document provenance](/journal/document-markdown-json-provenance/). The grouping principle in [independent split design](/journal/document-level-data-split-leakage/) helps recognize related observations derived from one source. OECD is a useful structured source when those definitions match the task; a convenient common export does not make all selected series comparable.
