Skip to main content
Defines a view from a workbook query.
For an easier building experience, build your query view using the workbook and then promote it to the shared model.

Syntax

Properties

object
An object containing query sub-parameters.

Examples

In this example, query.fields contains aliased fields - that is, the string after the colon defines the alias. For example, created_at. The dimensions.sales field is an example of a field that was not aliased.
Example with aliased fields