User Guide Getting Started Help Center Documentation Community Training
New LookML
Old LookML
New LookML
view_label (for Explores)

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

view_label can also be used as part of a join, described on this documentation page.

view_label can also be used as part of a dimension, measure, or filter, described on this documentation page.


explore: explore_name {
  view_label: "View Label I Want"



Default Value

The name of the Explore


A string


view_label changes the way that the group of fields from an Explore’s base view will be labeled in the Field Picker:

Sometimes view_label is used to add an underscore in front of the view name so that it sorts alphabetically to be the top view in the Field Picker. Alternatively, you can use it when you need more than one view for modeling purposes, but the views represent the same entity as far as business users are concerned. For example, you might have one view defined in your LookML as customer and another as customer_facts, and want them to retain those names for modeling purposes. However, it might make sense for both of them to appear as Customer to business users.

If you want to change the names of the fields themselves, you can use the label parameter.


Make the customer_facts Explore appear to business users to be part of the Customer view:

explore: customer_facts { view_label: "Customer" }

Make the product_facts Explore appear to business users to be part of the Product Info view:

explore: product_facts { view_label: "Product Info" }

Common Challenges

view_label Has No Effect Other Than Changing the Field Picker Appearance

When you change the view_label of an Explore, only the Field Picker is affected. The way that the Explore appears in the Explore menu, and the way that fields should be referenced in the LookML, are both unchanged.

Use Proper Capitalization When Combining Multiple Views Via view_label

If you want the fields from the Explore’s base view to be merged with one of the Explore’s joined views in the Field Picker, you’ll need to make sure that the capitalization you use in view_label is correct. The capitalization you use should match how the view name appears in the Field Picker. Take this example:

explore: product { view_label: "Product Info" join: product_info { sql_on: ${product.product_id} = ${product_info.product_id} ;; } }

The way that product_info will appear in the Field Picker is Product Info; each word is capitalized, and underscores and changed to spaces. For this reason, we used view_label: 'Product Info' instead of view_label: 'product_info'.

A Field’s view_label Takes Precedence Over an Explore’s view_label

If a field in an Explore has a view_label, the field will appear under its view_label, not the Explore’s view_label. Take this example below, where both an Explore and a dimension have view_label values. The dimension appears under its view_label, not the Explore’s view_label:

Things to Know

view_label Affects the Explore’s Base View

This parameter is similar to view_label (for joins) but affects the Explore’s base view instead of the joined views. Unlike label (for views), this parameter only affects the base view in that Explore.