Skip to main content

Limitations

Dimensions and measures can’t be grouped together. Applying the same group label to a dimension and a measure will result in two groups displaying in the field browser, not one group with both fields.

Syntax

Properties

dimension_name
object
The name of the dimension. Dimension names must:
  • Be unique within the view
  • Start with a letter
  • Contain only alphanumeric characters and underscores
group_label
string
Unquoted text specifying the group under which the field should appear in the field browser. Use the greater-than symbol (>) with whitespace on either side to create nested group hierarchies. Refer to the Organize fields with nested groups guide for more information and examples.

Date dimensions

When you apply a group_label to a date dimension, all timeframe variations (day, week, month, year, etc.) automatically nest under the parent field name within that group. For example:
Parent date field with a group label
In the field browser, this renders as:
This keeps related timeframes organized together while allowing you to categorize date fields into logical groups. If you want to have specific timeframes as standalone dimensions (not under a group), specify timeframes: [].

Examples

Grouping fields
Nesting under a timeframe group
Standalone date dimensions
In this example, note that the group_label is "Created At" not "created_at", as the group label must match the label, not the field:
Custom timeframe in existing group

Nested groups

Grouping types of customer data
Grouping date fields by category