View the original community article here
Last tested: Jul 29, 2019
In general, extends will bring through all of the base view field's parameters for a field with the same name in the extending view. However, dimension groups are unique in that they generate field names that are different from the actual name of the dimension group (a dimension group called "created" will generate "created_time", "created_date", etc.). Therefore, if you want to override the timeframes parameter in the dimension group of an extending view, you'll need to re-specify type: time
in the extending dimension group, even if it's already specified in the base dimension group, because type: time
is what actually tells dimension groups to generate these field names.
Example: This will not override the timeframes in the created dimension_group in test1.
view: test2 {
extends: [test1]
dimension_group: created {
timeframes: [month, year]
}
}
This WILL override the timeframes in the created dimension_group in test1:
view: test2 {
extends: [test1]
dimension_group: created {
type: time
timeframes: [month, year]
}
}
This content is subject to limited support.