Usage
dimension: field_name {
group_item_label: "desired label"
}
}
Hierarchygroup_item_label |
Possible Field TypesDimension, Dimension Group, Filter, MeasureAcceptsA string |
Definition
In cases where you’ve used the group_label
parameter to combine fields into custom groups in a view’s field picker, you can also use the group_item_label
parameter for each of the grouped fields to customize how the individual fields are shown in the field picker.
For example, you can add the group_label
to a set of fields like this:
These fields will now be combined into an expandable Shipping Info section in the field picker:
But since these fields are shown under the expandable Shipping Info section, they don’t need to have “Shipping” in their individual labels as well. So you can add the group_item_label
parameter to each of the grouped fields:
Now the fields display like this in the field picker:
The group_item_label
displays only in the field picker. In the Data section of an Explore and in any visualizations, Looker displays the field’s name or label as normal.