.Stat Suite documentation

Hide information of a data view

Table of Content


Hide information of a data view

You can decide to hide some specific information of a dataflow in its visual representations.

To do so, you can define the SDMX annotation of type NOT_DISPLAYED to be used for hiding a dimension, dimension values (from a Codelist), an attribute or attribute values (from a Codelist) in certain circumstances that are described in the following scenarios.

Scenario 1: Hide dimensions

When a dataflow dimension has an annotation NOT_DISPLAYED, then this dimension is hidden from the table’s/chart’s sub-title (when only one single value is selected or returned), AND this dimension is also hidden from the filters of the Data Explorer visualisation page.

Scenario 2: Hide dimension values

When a dimension value has an annotation NOT_DISPLAYED, then this value is hidden from the table’s/chart’s sub-title (when only this value is selected or returned).

Note that it is still shown in the filter of the Data Explorer visualisation page.

Scenario 3: Hide attributes

When a dataflow attribute has an annotation NOT_DISPLAYED, then this attribute is hidden from the table.

Scenario 4: Hide attribute values

When an attribute value has an annotation NOT_DISPLAYED, then this attribute value is hidden from the table.

Syntax

Use the following syntax in a dimension or attribute definition to hide dimensions or attributes:

        "annotations": [{
                 "type": "NOT_DISPLAYED"
         }]

Use the following syntax in a dataflow or dataset definition to hide dimensions or attributes:

        "annotations": [{
                 "type": "NOT_DISPLAYED",
                 "title": "DIM3,DIM6,ATTR5,ATTR6"   <-- These are the related dimension and attribute IDs
         }]

Use the following syntax in a code definition within the Codelist or in dimension/attribute value to hide dimension values or attribute values:

        "annotations": [{
                 "type": "NOT_DISPLAYED"
         }]

Use the following syntax in a dataflow, a DSD or a dataset definition to hide dimension values or attribute values:

        "annotations": [{
                 "type": "NOT_DISPLAYED",
                 "title": "DIM1=CODE1+CODE2,DIM3=CODE4,ATTR7=CODE5+CODE6"   <-- These are the related IDs of dimensions and their values, and attributes and their values
         }]

Example

The following example illustrates the above Scenario 2: Hide dimension values.

You can find here a SDMX structure file of a full Dataflow (with all referenced artifacts).

In this attached example, one code of a Codelist is defined with the NOT_DISPLAYED annotation in its code definition within the Codelist. It refers to the value “Other” of the dimension “Accommodation type”.

Once this structure (and data) is uploaded into .Stat DLM (or any other SDMX 2.1 compliant’s backoffice system) for Data Explorer dissemination, it will result hiding the value from the sub-title of the dataflow when this value is selected form the filter.

Example of NOT_DISPLAYED annotation


Automatic hide of specific values

By default, the following special values (codes of a Codelist) are hidden in the dataflow sub-title in the Data Explorer visualisation page:

  • _L (Local extension)
  • _T (Total)
  • _Z (Not applicable)

The case occurs when the code is the only available value, or when it is the only selection made in the given dimension.

Example

In the following illustrations:

  • When I select “Overnight visitors” from the filter, the selection appears in the sub-title of the dataflow;
  • When I select ONLY “Total” from the same filter, the selection is applied to the view BUT the selection is NOT displayed in the sub-title of the dataflow.

Example of hidden special value