view_label

LookML
Version

On this Page
Docs Menu

Go to Field Parameter List

This section refers to the view_label parameter that is part of a dimension, measure, or filter

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

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

Definition

The view_label parameter enables you to change how a view name appears in the Field Picker, and which fields will appear within a view. If not specified, the view label defaults to the name of the view.

Fields with view labels are still referenced with the normal ${view_name.field_name} syntax in LookML. The view label only impacts the appearance of the Field Picker.

Also, note the difference between a field’s view_label and the field’s label. The view_label changes only the view name under which the field is listed, and not the name displayed for the field itself:

Examples

Make this dimension appear under the Identifiers view instead of the Distribution Centers view in the Field Picker.

- view: distribution_centers fields: - dimension: id view_label: 'Identifiers' type: number sql: ${TABLE}.id

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