Data Query Views

Once your data query is complete, you can click Run and select a view at the bottom of the window to see a projection of your data.

Tip: You can also hover over a link between two operators and click View data.

Usually, you need one view per visualization displayed in your Data Perspective.

This page discusses:

See Also
RESULT SET
SORT
Defining Data Queries

There are different kinds of views: Raw view, Table view, Cube view, Tree view. Each view is suitable for different use cases.

The different views share the same definitions for fields, dimensions, and aggregations. This simplifies the share of filters between views. For example, you can use fields for columns in the Table View, and also use them as filtering criteria in the Raw View.

For each view, you can sort elements in a meaningful way. For more information, see Sorter Criteria Parameters.

Raw View

The Raw view returns data without any formatting and requires a few settings only.

Use this view to show:

  • Output data without any complex settings.
  • Polymorphic data, which is a stream of elements that do not support the same attributes.
Tip: The Raw view is the simplest one. You can start with that view to get a quick result of your query.

Table View

The Table view formats data in a table, where each field gives a column in output (see Fields). It provides filtering and sort features based on these columns.

Use this view to show:

  • Data in a table visualization.
  • Data with a known structure.

Cube View

The Cube view creates partitions of your data and processes aggregations on them. It consists of Axes and Aggregations.

An axis is a very visual concept. For example, a heat map, or a risk matrix, contain two axes, because data are represented in a 2D space.

A line chart has only one axis. For most cases, you can use one axis, sometimes two axes, and almost never more than two axes.

An axis provides pagination and sort features.

Each axis must have at least one dimension. You can define several dimensions on one axis to create a hierarchy, or group data according to different criteria. For example:

  • One axis with one dimension of cities returns: Berlin > New York > Lyon > Munich > Paris
  • One axis with two dimensions (one for countries and one for cities) returns: USA/New York > France/Lyon > France/Paris > Germany/Berlin > Germany/Munich

Use this view to show data in charts. For example, line chart, pie chart, heat map, etc.

Tree View

The Tree view formats data in a table supporting the display of tree paths. Each field gives a column in the output, with expandable nodes to discover the hierarchy. It shows filtering and sort features based on these columns.

Use this view to show:

  • Data in a table visualization.
  • Data with a tree path structure.

Examples

In the following examples, we have a RESULT SET with an input stream of tasks.

Example Description
Table of tasks

To show the list of tasks in a table with 3 columns (name, priority, and project), you can define a Table view with 3 fields:

  • name: tasks.name
  • priority: task.priority
  • project: task.project
Bar chart with a number of tasks per project

To have a bar chart showing the number of tasks per project, you can define a Cube view with:

  • An axis with one dimension using a Value partitioning function, based on the project field.
  • An aggregation that counts the number of tasks.
Heat map of number of tasks per project and per priority

To have a heat map showing the number of tasks per project and per priority, you can define a Cube view with:

  • A first axis with one dimension using a Value partitioning function, based on the project field.
  • A second axis with one dimension using a Value partitioning function, based on the priority field.
  • An aggregation that counts the number of tasks.