dimension_group auto expansion

Hi, if I have a dimension_group (time) defined, and I apply the ‘group_label’ parameter to group it with other similar dimensions, it looks like the dimension_group is no longer nested properly.

So, if I create the following dimension:

dimension_group: created_at {

    type: time

    sql: ${TABLE}.created_at ;;

    timeframes: [date, week, month]

    group_label: “Order Timestamps”

}

Without the group_label, this dimension_group would show nested under ‘Created At’. However, as it’s written above, it will auto expand under the ‘Order Timestamps’ label as: ‘Created At Date’, ‘Created At Week’, and ‘Created At Month’. Does anyone know if it’s possible to keep it nested to that users would need to click to expand the group_label as well as the dimension_group? 

Thanks!

0 1 256
1 REPLY 1

Dawid
Participant V

You could control it better by defining each timeframe separately 

dimension: created_month {
label: ""
group_label: ""
group_item_label: ""
type: date_month
sql: ${TABLE}.created_at ;;
}

 You can find more information here: https://docs.looker.com/reference/field-reference/dimension-type-reference in the section about individual date & time types

191888b7-0a69-4a36-bcd9-0f2fe7744c29.png
Top Labels in this Space
Top Solution Authors