fields

LookML
Version

On this Page
Docs Menu

Go to View Parameter List

This page refers to the fields parameter that is part of a view

fields can also be used as part of an explore, described here

fields can also be used as part of a join, described here

Usage

fields is a child of
view
view: view_name
...
fields:
1st
Tab
dimension: dimension_name
fields requires one or more
dimension or measure parameters

Definition

fields begins a section of LookML where you specify the dimensions and measures for a view. There can only be one fields parameter in a view.

In order to actually do anything, and to avoid receiving an error, fields requires that you nest one or more dimension or measure parameters underneath it.

Most of the information you’ll need about adding fields is found on this page.

Examples

Add some fields to a view called order:

- view: order fields: - dimension: order_id type: number sql: ${TABLE}.id - measure: count type: count # more fields might follow

Still have questions?
Go to Discourse - or - Email Support
Top