label

LookML
Version

On this Page
Docs Menu

Go to Model Parameter List

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

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

label can also be used as part of a view, described here

label can also be used as part of a dimension, dimension group, measure, or filter as described here

label can also be used as part of a reference line, described here

Usage

- label: 'Label I Want'
a string

Definition

label changes the way that a model will appear in the Explore menu.

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

Examples

Make the Explore menu option appear as Users for a model named user:

- label: 'Users'

Make the Explore menu option appear as Product ID Info for a model named 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 a model, only the Explore menu is affected. The way that the model should be referenced in LookML and Admin settings goes unchanged.

Things to Know

Avoid label When Possible By Naming Models Properly

If you know that you always want a model to appear in a certain manner to your business users, in many cases you can name the model appropriately, and avoid ever having to use label. Typically label is only used when you want to change the way that a model name is formatted. For example, you can make the model name “abc_info” appear as “ABC Info” instead of “Abc Info”.

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