User Guide Getting Started Help Center Documentation Community Training
New LookML
Old LookML
New LookML
Looker
  
English
日本語
label (for Views)

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

label can also be used as part of a model, as described on this documentation page.

label can also be used as part of an Explore, as described on this documentation page.

label can also be used as part of a field, as described on this documentation page.

label can also be used as part of a reference line, as described on this documentation page.

Usage

view: view_name {
  label: "View Label I Want"
}

Hierarchy

label

Default Value

The view name

Accepts

A string

Definition

label helps make Explores more user-friendly by allowing you to set the view names that appear in the Field Picker. If not specified, the label defaults to the name of the view.

Example

In the Field Picker, make the view appear as Product ID Info for a view named product_id_information:

view: product_id_information { label: "Product ID Info" }

Common Challenges

label Has No Effect Other Than Changing The Field Picker Appearance

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

Things to Know

label Can Affect Multiple Explores

Unlike view_label (for Explores) and view_label (for Joins), this parameter affects all Explores that use the view.

Avoid label When Possible By Naming Views Thoughtfully

A view does not need a label parameter if the name already appears and is formatted how you want your users to see it in the Field Picker. If you know how you want a view to appear to your users, you can often consider this when naming it, avoiding the the need to use label.

Typically label is only used when you want to:

Top