Import

Gewijzigd op Wo, 14 Mei, 2025 om 2:42 PM

Importing (Meta)Data in Swing Studio

On this page, you can import various types of (meta)data files into Swing Studio. To select files, click the ‘ADD FILES’ button or drag and drop files into the green-bordered area.

Supported File Formats

You can import the following file formats:

  • Excel (.xls, .xlsx, .xlsb, .xlsm)

  • Excel XML

  • CSV

  • Access databases (.mdb, .accdb)

Types of Import Files

1. Meta data files

Metadata files contain descriptions of data, such as indicator names or data sources. You can import metadata into tables like Indicators, Units, or Area levels.

  • Column names must exactly match those in the target table in Swing Studio.

  • To create an example file, select rows from a table and click ‘Export metadata’.

2. Presentation files

Presentations can be imported as compressed ZIP folders. These ZIP files must be exported from the Presentation page and contain .sw5p files.

3. Data files

Data files contain actual values (numeric or textual) for one or more indicators. Supported value types include:

  • Numbers

  • Percentages (values between 0 and 100)

  • Averages

  • Label values

Note: Percentages and averages can only be aggregated if a weight variable is linked to the indicator.

Import Formats

Format 1: Indicator per Column

Each indicator is placed in a separate column. Use the fixed column names PERIOD, GEOLEVEL, and GEOITEM. If your file uses different names, you can adjust the layout after import, or use a definition file (not supported for CSV).

Example 1:

PERIODGEOLEVELGEOITEMPOPTOTPOPMALEPOPFEMALE
2010municipality1680250001300012000
2010municipality538500002400026000

Example 2: Table name = "Data"

PLMUNICIPALCODEPOPTOTPOPMALEPOPFEMALE
2010municipality1680250001300012000
2010municipality538500002400026000

Table name = "Data_def"

coltype
PPERIOD
LGEOLEVEL
MUNICIPALCODEGEOITEM
POPTOTVAR
POPMALEVAR
POPFEMALEVAR

Note: Unknown columns are automatically treated as type VAR.

Adding Dimensions

To include additional dimensions (e.g., gender or age), add columns using the prefix DIM_.

Example 3: Table name = "Data"

PLMUNICIPALCODEDIM_GENDERDIM_AGE65+POPULATION
2010municipality1680M0-6510000
2010municipality1680F0-6511000
2010municipality1680M65+5000
2010municipality1680F65+7000

Table name = "Data_def"

coltype
Pperiod
Lgeolevel
MUNICIPALCODEgeoitem
DIM_GENDERdim
DIM_AGE65+dim
POPULATIONvar

Note: Using dimensions can improve visualizations and simplify presentation settings for end users.

Format 2: Value per Record

Each row represents one value. Use fixed columns: PERIOD, GEOLEVEL, GEOITEM, VARIABLE, VALUE.

Example 4:

PERIODGEOLEVELGEOITEMVARIABLEVALUE
2010municipality1680POPTOT25000
2010municipality1680POPMALE13000
2010municipality1680POPFEMALE12000

Example 5: Table name = "Data"

PERLAREAINDFACT
2010municipality1680POPTOT25000
2010municipality1680POPMALE13000
2010municipality1680POPFEMALE12000

Table name = "Data_def"

coltype
PERperiod
Lgeolevel
AREAgeoitem
INDvar
FACTvalue

Importing Stream Data

Stream data tracks flows between areas (e.g., migration between municipalities). The file must have the following format:

STREAMMUNICIPALITYIDEMVAR1VAR2
2001DEN HAAGROTTERDAM1,0002,000
2001LEIDSCHENDAMDEN HAAG4,0005,000
2001VOORBURGUTRECHT9,0007,000
2001DELFTDORDRECHT5,0006,000
2001UTRECHTROTTERDAM9,0008,000
2002EINDHOVENZWIJNDRECHT4,0003,000
2002ROTTERDAMDELFT3,0004,000
2002ZWIJNDRECHTROOSENDAAL1,0001,000
2002DORDRECHTDEN HAAG2,0003,000
2002ROOSENDAALVOORBURG7,0003,000
  • >STREAM: period

  • FROM_LEVEL: source area codes

  • IDEM: destination area codes (same level as source)

  • VAR1, VAR2, ...: values per indicator

Note: The use of dimensions with this data format is not supported.

Import Options

You can enable these additional options during import:

  • Clear all data for indicators in import file

  • Clear data for combinations of indicator, period and geolevel in import file

  • Automatically adjust start and end periods

  • Delete records with special values

  • Skip records with unknown values

Was dit artikel nuttig?

Dat is fantastisch!

Hartelijk dank voor uw beoordeling

Sorry dat we u niet konden helpen

Hartelijk dank voor uw beoordeling

Laat ons weten hoe we dit artikel kunnen verbeteren!

Selecteer tenminste een van de redenen

Feedback verzonden

We stellen uw moeite op prijs en zullen proberen het artikel te verbeteren