User Guide Getting Started Help Center Documentation Community Training
New LookML
Old LookML
New LookML
filter

Usage

view: view_name {
  filter: filter_name {}
}

Hierarchy

filter

Default Value

None

Accepts

A Looker identifier to name the filter

Special Rules

Filter names may not be shared with any other filter, dimension, or measure within the same view

Definition

The filter parameter declares a filter-only field and a name for that filter. A user can add filter-only fields as filters when exploring, but they cannot add them to their result set. These filter-only fields are made useful via templated filters, which are an advanced LookML topic.

The filter name must:

There are many types of filter fields, as discussed further here.

Examples

Create a filter that lets the user specify the order_region:

filter: order_region { type: string }

Top