Difference between revisions of "Publication Table"
Jump to navigation
Jump to search
(Created page with "= Overview = = Syntax = == Data Cell Syntax == Each data cell in a publication table is defined by a cell key, which resolves to an observation when the table is materia...") |
(→Overview) |
||
Line 1: | Line 1: | ||
= Overview = | = Overview = | ||
+ | [[File:Publication Table.png|frameless|left]] | ||
= Syntax = | = Syntax = |
Revision as of 00:50, 28 March 2022
Overview
Syntax
Data Cell Syntax
Each data cell in a publication table is defined by a cell key, which resolves to an observation when the table is materialised.
- A fully formed cell key consists of Dimension Values for each Dimension including Time Period if the DSD has a Time Dimension.
- If there are multiple measures in the DSD the Measure Dimension should also be included.
- A cell key can leave out Dimension values, in doing so the Dimension value is treated as a variable, which can be passed in at 'run time' to build the table output
- A cell key can leave out Dimension values, in doing so the Dimension value is treated as a variable, which can be passed in at 'run time' to build the table output
- A cell key can treat time as a variable, and also provide arithmetic on the Time Dimension to move forwards and backwards in periods, or to change Frequency
- A cell key can include calculations
Examples:
|- ! Cell Key !! Description |- | A:UK:EMP:M || Series key without Time |- | A:UK:EMP:M:2008 || Series key with Time |- | A:UK:EMP:M:2008:BIRTHS || Series key with Time and ID of Measure Dimension |- | A:UK:EMP:M:P || Series key with variable Time |- | A::EMP:M:P || Series key with variable dimension and variable Time |- | A:UK:EMP:M:P-1 || Series key with variable Time, which is 1 period before the base period of the table |- | :=A:(UK+FR):EMP:M || A calculated value from 2 series |}
Time Arithmetic Syntax
Syntax | Description | Example Input | Example Output |
---|---|---|---|
Example | Example | Example | Example |
Example | Example | Example | Example |
Example | Example | Example | Example |
Example | Example | Example | Example |
Example | Example | Example | Example |
Example | Example | Example | Example |
Example | Example | Example | Example |