offdataai
BigQuerySemantic LayerLookerMetrics

Semantic Layer for BigQuery: Looker, dbt and Other Options

The main ways to build a semantic layer on Google BigQuery, including LookML, the dbt Semantic Layer and universal semantic layers, how each serves BI tools and AI agents, and how to choose.

ooffdataai2 min read

BigQuery stores and queries the data; the semantic layer on top of it defines what the data means, such as how net revenue is calculated and how customers join to orders. On Google Cloud, the most common choice is Looker's LookML. The dbt Semantic Layer and universal semantic layers such as Cube and AtScale also run on BigQuery. This guide compares them.

Options at a glance

OptionDefinitions inBest fit
Looker (LookML)LookML files in GitLooker is the main BI tool; Google Cloud-native stacks
dbt Semantic LayerYAML in the dbt projectdbt builds your BigQuery models; metrics versioned with them
CubeCodeEmbedded analytics and apps needing an API and caching
AtScaleModelling UI and codeExcel, Power BI and Tableau users on BigQuery
Power BI semantic modelPower BIMicrosoft reporting on BigQuery data

Looker and LookML on BigQuery

LookML defines views (tables), explores (allowed joins), dimensions and measures. Looker generates BigQuery SQL from them, and Google uses Looker's semantic model for conversational analytics on Google Cloud. It is the most integrated option for Google-centred companies. The trade-off is that LookML definitions are written for Looker, and reusing them in other tools takes extra work.

The dbt Semantic Layer on BigQuery

If your BigQuery models are built with dbt, MetricFlow YAML can define metrics in the same repository. Changes are reviewed with the models they depend on, and integrated BI tools query the metrics through dbt.

Universal semantic layers

Cube and AtScale sit between BigQuery and every consumer. They add caching or aggregate tables, which can noticeably reduce BigQuery scan costs for repeated dashboard queries, and they expose interfaces for many tools at once. See what is a universal semantic layer.

BigQuery-specific design points

  • Partitioning and clustering affect every semantic layer's cost. Make sure generated queries filter on the partition column; most layers let you require a date filter.
  • Nested and repeated fields (ARRAY<STRUCT>) are efficient for storage, but most semantic layers work best on flat star schemas. Unnest into line-level facts where metrics need them. See BigQuery schema.
  • Declared keys (PRIMARY KEY ... NOT ENFORCED) document joins for both people and tools.

Frequently asked questions

Does BigQuery have a built-in semantic layer?

BigQuery itself stores tables and views. Google's semantic modelling is provided by Looker; other semantic layers connect to BigQuery as a warehouse.

What is the best semantic layer for BigQuery?

Looker if it is your BI tool. The dbt Semantic Layer if dbt is your transformation tool and metrics should live with it. A universal semantic layer if several BI tools and AI agents must share definitions.

Define once, publish everywhere

offdataai derives concepts and metrics from a validated BigQuery data model, compiles questions into BigQuery SQL, serves them to AI agents over MCP and exports them to dbt MetricFlow YAML and other formats. See the BigQuery schema generator and the semantic layer.

Try offdataai

Ship a warehouse from a single conversation.

Describe your domain. Get ERDs, DDL, dbt projects, and seed data for every major cloud warehouse.

Start building

Keep reading

All posts →