Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

CONNECT data services

Configure data shape

  • Last UpdatedOct 31, 2024
  • 3 minute read

Data views can be configured to return data in either a standard shape or a narrow shape. Standard shape returns data in a grouped row format. Narrow shape is a pivot of the standard table.

With a standard shape, each row in the resolved data view includes all the data fields for a single event or observation. With a narrow shape, each row in the resolved data view includes only one data field. This results in a narrow output schema where one column contains all the data field values, so the schema remains fixed regardless of changes to the included data fields. Narrow shape may be used when an invariant output schema is required.

Standard

The standard table column structure is built horizontally from left to right. The index field is first, followed by the grouping fields, if any exist. Data field sets come next, in the order they are presented in the data view. Fields are presented in order of appearance within each data field set for each data item from the associated query.

Vertically, the standard structure depends on the inclusion of grouping fields. If grouping fields are not defined, each resultant index appears only once, and all interpolated data is in that row. If grouping fields are defined, then the resultant indexes will repeat vertically for each group. The groups are presented in alphabetical order.

Standard data shape

Screenshot of the standard data shape. Contains columns for Timestamp, Name, Active Power kW, and Wind Speed with data for each.

Narrow

The narrow table pivots the standard table. Each data field becomes a row comprised of the following columns:

  • Index column

  • Grouping value column(s)

  • Field column, which holds the resolved column label of the field

  • Value column, which holds the field value such as the property or metadata value

The column label of the index and grouping value columns may vary depending on the resolved label. The Field and Value column labels are not modifiable.

The data view is built vertically by grouping field, if present, then by field.

Data views resolving into multiple data items with the same property ids or names, should use a grouping field or an identifier in order to differentiate the data rows.

Narrow data shape

Screenshot of the narrow data shape. Contains columns for Timestamp, Name, Field, and Value with data for each.

To configure data shape

To choose a data shape, choose between the Standard and Narrow options at the top of the page.

Data view shape options

Screenshot of radio buttons to choose between Standard and Narrow Data View Shape.

Next steps

Continue to Preview and save the data view.

In This Topic
TitleResults for “How to create a CRG?”Also Available in