This page refers to the
labelparameter that is part of a model
labelcan also be used as part of an explore, described here
labelcan also be used as part of a view, described here
labelcan also be used as part of a dimension, dimension group, measure, or filter as described here
labelcan also be used as part of a reference line, described here
|- label: 'Label I Want'|
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.
Make the Explore menu option appear as Users for a model named user:
Make the Explore menu option appear as Product ID Info for a model named Product_Id_Information:
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
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 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”.