home User Guide Getting Started Help Center Documentation Community Training Certification
menu
close
settings
Looker keyboard_arrow_down
language keyboard_arrow_down
English
Français
Deutsch
日本語
search
print
default_value

Usage

view: view_name {
  filter: field_name {
    default_value: "desired default value"
  }
}

Hierarchy

default_value

Possible Field Types

Filter, Parameter

Accepts

A string containing the desired filter value

Special Rules

If an Explore specifies a value for this field in an always_filter parameter, then that setting overrides the default_value setting for the field.

Basics

The default_value parameter is used to specify a default value for filter fields and parameter fields.

Avoid using default_value with parameter if your data has values that include underscores.

An example of its usage is:

filter: order_region { default_value: "Northeast" }

Common challenges

If an explore parameter has a value specified by an always_filter parameter, then that setting overrides the default_value setting for the field.

Top