Skip to main content
Bin text cannot be configured, but you can use a CASE statement to explicitly set text.

Limitations

This parameter can only be used with numeric fields. Use groups for string fields.

Syntax

<dimension_name>:
  sql: ${<view_name>.<field_name>}
  bin_boundaries: [<boundary_1>, <boundary_2>, ...]

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

Bins of '< 21', '>= 21 and < 65', and '65 and above'
age_bin:
  sql: ${users.age}
  bin_boundaries: [21, 65]
  label: Age Bins