cd /news/artificial-intelligence/using-bigquery-graphs-with-measures-… · home topics artificial-intelligence article
[ARTICLE · art-95780] src=cloud.google.com ↗ pub= topic=artificial-intelligence verified=true sentiment=↑ positive

Using BigQuery Graphs with measures for trusted agentic workloads

Google Cloud announced that BigQuery Graph now supports measures in preview, enabling AI agents to reason across interconnected business data with accurate, governed metrics. The feature lets data modelers define measures like SUM or AVG directly in Property Graph DDL, using GRAPH_EXPAND and AGG to resolve structural paths before evaluating metrics, and integrates with Looker (LookML) for in-database analytic models. This addresses the problem of agents producing inaccurate insights when working with raw tables, such as a retailer's agent failing to explain a 12% drop in winter jacket sales in Seattle due to missing relational context.

read3 min views1 publishedAug 13, 2026

When enterprises transition from using simple chat assistants to autonomous, agentic workloads, they quickly run into a hard truth: Agents are prone to inaccurate insights when working with directly raw tables.

BigQuery Graph helps organizations move beyond flat, static tables to represent enterprises exactly how they exist in the physical world: as interconnected business entities with real-world dependencies. With the support of measures in BigQuery Graph (preview), we are unifying governed metrics with relationship mapping. This allows your agents to reason across complex dependencies captured in graphs with precision of measures.

Why relationships matter

Traditional data structures are blind to multi-hop business context, causing AI agents to make incorrect operational decisions:

The concrete problem: If a retailer has an agent who is asked why winter jacket sales dropped 12% in Seattle, it can query flat tables to report the what (the 12% dip). But it fails at the why because it cannot trace the relational path: Seattle orders ➔ distribution centers ➔ suppliers delayed by regional storms.

The risk of disjointed systems: Lacking relationship context, the agent suggests an irrelevant 15% markdown campaign, needlessly eroding margins. Furthermore, maintaining separate systems - where one team maps supplier relationships in a separate graph database while another maintains SQL metrics - forces your agent to stitch these stacks together at runtime. This process is slow, expensive, and leads to inconsistent KPI calculations.

Measures in BigQuery Graph solves this by letting you map existing tables to a property graph in-place with zero ETL. This unified setup enables a logical evolution of inquiry:

Metadata grounding establishes what data you have.

Business metrics (measures) calculate how your business performed.

Relationship mapping (graph) uncovers why it happened.

Historically, standard SQL joins during graph traversals duplicate rows, leading to incorrect aggregation calculations. BigQuery Graph solves this natively.

Data modelers define a MEASURE

(like SUM

or AVG

) directly within the Property Graph DDL. Using standard SQL via the GRAPH_EXPAND

function and the AGG aggregator, the engine resolves the structural graph paths before evaluating metrics. This ensures your agent is smart enough to know when it needs a calculator (SQL) and when it needs a map (graph).

Because public projects like bigquery-public-data

are strictly read-only, you must map the logical property graph inside your own project using a placeholder variable (YOUR_PROJECT_ID

), while directly referencing the read-only public tables as nodes and edges.

To make managing and deploying these relationship networks frictionless for both developers and business users, we have built native, intuitive operational tools directly into BigQuery Studio:

Visual graph modeler: A no-code, drag-and-drop interface inside BigQuery Studio that lets you visually build, edit, and map property graphs, nodes, and edges without writing complex DDL scripts manually.

To avoid maintaining fragmented logic stacks, business metrics must live at the data layer. By integrating Looker (LookML) natively with BigQuery Graphs as in-database analytic models, you define logic once at the core:

sql_analytic_model_name

to map standard LookML dimensions and measures directly to your graph properties.derived_analytic_model

. Looker will dynamically generate and execute the SQL DDL statements to maintain the graph inside BigQuery.

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @google cloud 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/using-bigquery-graph…] indexed:0 read:3min 2026-08-13 ·