On this Page
Docs Menu

Go to Field Parameter List


The group_label parameter enable you to combine fields into custom groups, within a given view, in the Field Picker. Consider this example:

- view: account fields: - dimension: shipping_city sql: ${TABLE}.shipping_city group_label: 'Shipping Info'   - dimension: shipping_state sql: ${TABLE}.shipping_state group_label: 'Shipping Info'   - dimension: shipping_street sql: ${TABLE}.shipping_street group_label: 'Shipping Info'

If you did this, instead of the fields appearing un-grouped, they would be combined into an expandable Shipping Info section:

group_label also interacts with dimension groups in useful ways, since a dimension_group automatically places its fields together in the Field Picker. By using group_label, you can add additional fields into the dimension group. For example:

- view: account fields: - dimension_group: created type: time timeframes: [date, week, month] sql: ${TABLE}.created_date   - dimension: special_date_calculation sql: QUARTER(${TABLE}.created_date) group_label: 'Created Date'

This would look like:

Please keep in mind that you can’t group dimensions and measures together in the same group_label. Within any given view all dimensions always appear above all measures.

Still have questions?
Go to Discourse - or - Email Support