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:
| PERIOD | GEOLEVEL | GEOITEM | POPTOT | POPMALE | POPFEMALE |
|---|---|---|---|---|---|
| 2010 | municipality | 1680 | 25000 | 13000 | 12000 |
| 2010 | municipality | 538 | 50000 | 24000 | 26000 |
Example 2: Table name = "Data"
| P | L | MUNICIPALCODE | POPTOT | POPMALE | POPFEMALE |
|---|---|---|---|---|---|
| 2010 | municipality | 1680 | 25000 | 13000 | 12000 |
| 2010 | municipality | 538 | 50000 | 24000 | 26000 |
Table name = "Data_def"
| col | type |
|---|---|
| P | PERIOD |
| L | GEOLEVEL |
| MUNICIPALCODE | GEOITEM |
| POPTOT | VAR |
| POPMALE | VAR |
| POPFEMALE | VAR |
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"
| P | L | MUNICIPALCODE | DIM_GENDER | DIM_AGE65+ | POPULATION |
|---|---|---|---|---|---|
| 2010 | municipality | 1680 | M | 0-65 | 10000 |
| 2010 | municipality | 1680 | F | 0-65 | 11000 |
| 2010 | municipality | 1680 | M | 65+ | 5000 |
| 2010 | municipality | 1680 | F | 65+ | 7000 |
Table name = "Data_def"
| col | type |
|---|---|
| P | period |
| L | geolevel |
| MUNICIPALCODE | geoitem |
| DIM_GENDER | dim |
| DIM_AGE65+ | dim |
| POPULATION | var |
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:
| PERIOD | GEOLEVEL | GEOITEM | VARIABLE | VALUE |
|---|---|---|---|---|
| 2010 | municipality | 1680 | POPTOT | 25000 |
| 2010 | municipality | 1680 | POPMALE | 13000 |
| 2010 | municipality | 1680 | POPFEMALE | 12000 |
Example 5: Table name = "Data"
| PER | L | AREA | IND | FACT |
|---|---|---|---|---|
| 2010 | municipality | 1680 | POPTOT | 25000 |
| 2010 | municipality | 1680 | POPMALE | 13000 |
| 2010 | municipality | 1680 | POPFEMALE | 12000 |
Table name = "Data_def"
| col | type |
|---|---|
| PER | period |
| L | geolevel |
| AREA | geoitem |
| IND | var |
| FACT | value |
Importing Stream Data
Stream data tracks flows between areas (e.g., migration between municipalities). The file must have the following format:
| STREAM | MUNICIPALITY | IDEM | VAR1 | VAR2 |
|---|---|---|---|---|
| 2001 | DEN HAAG | ROTTERDAM | 1,000 | 2,000 |
| 2001 | LEIDSCHENDAM | DEN HAAG | 4,000 | 5,000 |
| 2001 | VOORBURG | UTRECHT | 9,000 | 7,000 |
| 2001 | DELFT | DORDRECHT | 5,000 | 6,000 |
| 2001 | UTRECHT | ROTTERDAM | 9,000 | 8,000 |
| 2002 | EINDHOVEN | ZWIJNDRECHT | 4,000 | 3,000 |
| 2002 | ROTTERDAM | DELFT | 3,000 | 4,000 |
| 2002 | ZWIJNDRECHT | ROOSENDAAL | 1,000 | 1,000 |
| 2002 | DORDRECHT | DEN HAAG | 2,000 | 3,000 |
| 2002 | ROOSENDAAL | VOORBURG | 7,000 | 3,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
Feedback verzonden
We stellen uw moeite op prijs en zullen proberen het artikel te verbeteren