I would like to a dashboard by setting a value of a filter. Here are my dashboards:
- dashboard: summary_report
title: Summary Report
layout: newspaper
extension: required
- elements:
- title: Blab
...
listen:
Filter: some_field
- name: Channel
title: Channel
type: field_filter
allow_multiple_values: false
required: false
explore: explore
field: some_field
model: app
listens_to_filters: []
- dashboard: specific_report
title: Specific Report
extends: summary_report
- elements:
- title: Another element
...
listen:
Filter: some_field
- name: Channel
title: Channel
(here I would like to extend Channel filter)
default_value: DEFAULT_VALUE
Any idea how I can do this? I don’t know where to put ${EXTENDED} in this case
I’m not totally sure what you meant by ${EXTENDED}— Is that the field you want to filter on? You should be able to declare the updated filter in specific_report by adding a listen: block like your example shows
listen:
User ID: user.id
and then have a filter defined for User ID:
filters:
- name: User ID
title: User ID
type: field_filter
default_value: "{{ _user_attributes['user_id'] }}"
allow_multiple_values: false
required: false
model: rock_climbing
explore: ascent
listens_to_filters: []
field: user.id
Generally, with LookML dashboards, I personally find it easiest to build really simple dashboards and then use the “Get Dashboard LookML” option from the settings menu on the dashboard to see what those UI changes are actually doing to the LookML.