What is LookML and How is it Used in Looker?

LookML is a language for modeling and defining data relationships, making data analysis more efficient and scalable.
Published
May 16, 2024
Author

LookML, or Looker Modeling Language, is a language used in Looker to create semantic data models. It is a proprietary, syntax-based language developed by Looker Data Sciences, Inc. LookML enables users to define how data in a database should be queried to create a particular view. It provides a layer of abstraction between the raw data in the database and the end user, allowing data analysts to define business logic, relationships and calculations in a centralized place.

  • Dimensions: In LookML, dimensions are defined as any field or attribute in the data model. This could be a column in a table, a calculated field, or a derived attribute. They provide context for measures.
  • Aggregates: These are calculations performed on the data that provide summary information. In LookML, aggregates are often used to create metrics that can be used in reports and dashboards.
  • Calculations: LookML allows users to define custom calculations that can be used in queries. These calculations can be based on existing fields or can be completely custom.
  • Data Relationships: LookML uses relationships to define how tables and views are connected in the data model. This allows users to query across multiple tables and views.

How does LookML work?

LookML works by providing a layer of abstraction between the raw data in the database and the end user. It allows data analysts to define business logic, relationships and calculations in a centralized place, which can then be used by end users to create reports and dashboards without needing to understand the underlying SQL.

  • Abstraction Layer: LookML acts as an abstraction layer, simplifying the process of querying data. It allows users to interact with data using simple, intuitive commands rather than complex SQL queries.
  • Centralized Business Logic: By defining business logic in LookML, data teams can ensure consistency and accuracy across all reports and dashboards. This also reduces the risk of errors and inconsistencies.
  • User-Friendly: LookML makes data more accessible to non-technical users. They can create complex reports and dashboards without needing to understand SQL or the underlying data structure.

How does Secoda integrate with LookML?

Secoda is a tool that can be used with Looker to integrate data, profile data, and automatically generate LookML code. Users can integrate Looker data and connect to Secoda with a few clicks in a code-free environment. Secoda AI can automatically generate LookML code from dbt documentation and descriptions. Users can quickly set up data profiling using Looker and Secoda, automate workflows to create documentation for new Looker integrations, and discover metadata through automatic insights.

  • Data Integration: Secoda allows users to integrate Looker data in a code-free environment, simplifying the process of data integration.
  • Automatic LookML Generation: Secoda's AI can automatically generate LookML code from dbt documentation and descriptions, reducing the manual work required in coding.
  • Data Profiling: With Looker and Secoda, users can quickly set up data profiling to understand the characteristics of their data.
  • Automated Documentation: Secoda can automate workflows to create documentation for new Looker integrations, ensuring that all data processes are well-documented.

Keep reading

See all