Skip to main content
Note: Measures and dimensions will still be in separate sections in the field browser for each view.

Date dimensions and group labels

By default, date dimensions will appear in their own group label based on the name of the base dimension, with timeframes under the group label appending the timeframe to the group label. If you want to have specific timeframes as standalone dimensions (not under a group), specify timeframes: []. Additionally, if date dimensions are grouped under the same label, each timeframe will be displayed without subgrouping.

Syntax

<dimension_name>:
  group_label: <label_text>

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

Examples

Grouping fields
name:
  group_label: Important Fields
Nesting under a timeframe group
created_at: {}

example_new_time:
  sql: "other_time"
  group_label: Created At
  timeframes: [minute]
Standalone date dimensions
created_at_date:
  sql: ${created_at[date]}
  label: Created at Date
  timeframes: []

created_at_month:
  sql: ${created_at[month]}
  label: Created at Month
  timeframes: []
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
created_at_minute_5:
  sql: id+1
  group_label: Created At