default_value Stay organized with collections Save and categorize content based on your preferences.
Usage
view: view_name { filter: field_name { default_value:"desired default value" }}Hierarchy default_value | Possible Field Types Filter, ParameterAccepts A string containing the desired filter valueSpecial Rules If an Explore specifies a value for this field in analways_filter parameter, then that setting overrides thedefault_value setting for the field. |
Basics
Thedefault_value parameter is used to specify a default value forfilter fields andparameter fields.
Avoid using
default_valuewithparameterif your data has values that include underscores.
An example of its usage is:
filter: order_region { default_value: "Northeast"}-
Common challenges
If anexplore parameter has a value specified by analways_filter parameter, then that setting overrides thedefault_value setting for the field.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-22 UTC.