User Guide Getting Started Help Center Documentation Community Training
New LookML
Old LookML
New LookML
Looker
  
English
Français
Deutsch
日本語
label (for Explores)

This page refers to the label parameter that is part of an Explore.

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

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

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

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

Usage

explore: explore_name {
  label: "Label I Want"
}

Hierarchy

label

Default Value

The name of the explore, with each word capitalized and underscores replaced by spaces

Accepts

A string

Definition

label helps make Explores more user-friendly by allowing you to set the Explore titles in the Explore menu and in the Explores themselves:

If you do not explicitly add a label to an Explore definition, the label defaults to the name of the explore, but nicely formatted. Underscores are changed to spaces, and each word is capitalized.

Examples

Make the Explore menu option appear as Users instead of User:

explore: user { label: "Users" }

Make the Explore menu option appear as Product ID Info instead of Product Id Information:

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

Common Challenges

label Has No Effect Other Than Changing the Explore Menu Appearance

When you change the label of an Explore, only the Explore menu is affected.

The way that fields should be referenced in the LookML goes unchanged. The way that fields will appear within the Explore UI is also unchanged. If you prefer the LookML references and field names to change, use the from parameter instead.

Things to Know

Avoid label When Possible By Naming Explores Properly

If you know that you always want an Explore to appear in a certain manner to your business users, consider giving that name to the explore in your LookML. Then you won’t need to use label.

Typically label is only used when you want to:

Top