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

Syntax

Properties

fields
array
Fields to include in the query view, specified as view_name.field_name. To alias fields, specify as view_name.field_name: alias.
base_view
string
The view to use as the base for the query.
filters
object
Filters to apply to the query view, specified using filter syntax.

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