Understanding LookML: models, views, Explores, and a safe first change
LookML is Looker’s modeling language for declaring models, fields, relationships, and business rules that let Looker generate database queries. Analysts organize it in model and view files; users choose dimensions, measures, and filters in an Explore. LookML is a reusable blueprint for SQL generation, not a database replacement.
LookML is Looker’s modeling language for declaring models, fields, relationships, and business rules that let Looker generate database queries. Analysts organize it in model and view files; users choose dimensions, measures, and filters in an Explore. LookML is a reusable blueprint for SQL generation, not a database replacement.
Three core structures
A **model file** specifies a database connection and the Explores and joins exposed to users. Different models can present different subject areas over the same connection.
A **view file** represents a table or derived table and defines fields and calculations. A dimension generally describes a row-level attribute or value and can group or filter results. A measure carries aggregate meaning such as sum, count, or average.
An **Explore** is both a user-facing query starting point and a structure declared in a model file. Not every view needs to be an Explore. Distinguish the LookML explore declaration from the Explore interface.
A model sets the connection and Explore; an Explore brings in views; view fields inform generated SQL. When users select fields, Looker translates the model into SQL, runs it against the database, and returns a table or visualization. Reuse reduces duplicated definitions, but an incorrect field or relationship can reproduce incorrect results.
Make and verify a first change
The cited Quickstart targets Looker (Google Cloud core) and a sample project; menus and permissions can differ in other instances. Confirm your project’s version-control process and develop permission first.
Turn on Development Mode in the Looker IDE. Preview changes in your development branch without immediately changing what production users see.
Locate the connection and Explore in the model file, then inspect the view files it references. Check SQL expressions and aggregation types, not just field names.
Make one bounded change, such as adding a business description, defining a dimension, or including a needed view. Keep row-level dimensions distinct from aggregate measures.
Run LookML validation and open the development Explore to confirm the field appears. Compare results with a small sample or a known period and total. Passing validation checks structure and syntax; it does not prove a metric’s business definition is correct.
Review and commit through Git, then follow the organization’s approval and deployment process. Production deployment is separate from development preview.
A minimal example has connection, include, and explore in the model, and dimension and measure in a view. For example, an order ID could be a dimension and the sum of order amounts a measure, provided that matches the actual schema and metric contract.
Common confusion
**A field is missing from Explore:** check model includes and references, saved view files, the field definition, and access.
**Totals are inflated:** investigate joins, keys, and aggregation semantics as well as LookML syntax.
**Validation passes but values look wrong:** inspect generated SQL, known source rows, filters, time zones, duplicates, and the agreed business definition.
**A development result is mistaken for production:** check the active branch and deployment state.
Sources and scope
Based on Google Cloud Looker documentation read 2026-11-19. The Quickstart is specific to Looker (Google Cloud core); UI and permissions vary by deployment.
[Introduction to LookML](https://docs.cloud.google.com/looker/docs/what-is-lookml)
[LookML terms and concepts](https://docs.cloud.google.com/looker/docs/lookml-terms-and-concepts)
[Model your data in LookML](https://docs.cloud.google.com/looker/docs/looker-core-qs-model-data)
[LookML project files](https://docs.cloud.google.com/looker/docs/lookml-project-files)