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
Looker documentation will be moving to cloud.google.com in mid-2022!
All the information you rely on will be migrated and all docs.looker.com URLs will be redirected to the appropriate page.
dimension

Usage

view: view_name {
  dimension: field_name {}
}
Hierarchy
dimension
Accepts
A Looker identifier to name the dimension

Definition

The dimension parameter declares a new dimension and specifies a name for that dimension.

The name must:

There are many types of dimensions, as discussed further on the Dimension, filter, and parameter types documentation page.

Examples

Create an id and a supplier_name dimension in a view named products:

view: products { dimension: id { primary_key: yes sql: ${TABLE}.id ;; } dimension: supplier_name { sql: ${TABLE}.supplier_name ;; } }

Top