Skip to main content

Edit a dataset: metrics, columns and settings

The dataset editor is where a dataset becomes something your whole team can trust: calculations defined once, columns explained, limits set, and a clear view of what depends on it.

Open and unlock a dataset

  1. Open the dataset

    On the Datasets page, choose Edit dataset (the pencil) on the dataset.

  2. Unlock it

    The editor opens read-only, so nothing changes by accident. Choose Unlock Edits at the top right; it changes to Editing Unlocked.

  3. Make your changes and save

    Work through the tabs below, then choose Save Changes. Cancel leaves without saving. (Metrics are the exception: they're saved as you edit them.)

The header shows the dataset's name, its connection, whether it's a physical table or a virtual view, and whether it's in sync with the source.

Source & Engine

Execution Engine & Mode
Direct Live Query reads the database on every chart load; Import Snapshot Query reads a stored snapshot. See Live or imported.
Source SQL Definition
The SQL behind the dataset. For a table it's a plain SELECT; for a virtual dataset, your query. Copy Query copies it.

Metrics

A metric is a calculation everyone should do the same way. Define Gross margin once, and every chart, alert and AI answer that uses it agrees.

  1. Add a metric

    With editing unlocked, choose Add Metric. A metric called new_metric that counts rows, COUNT(*), is added and saved straight away, ready for you to change.

  2. Fill it in

    FieldWhat to enterExample
    Metric KeyA short id: lowercase letters, digits and underscores, starting with a letter.gross_margin
    Display LabelThe name people see in the chart editor.Gross margin
    SQL ExpressionA complete aggregation over the dataset's columns.SUM(profit) / NULLIF(SUM(revenue), 0)
  3. Use it

    Metric changes are saved as you type; the bin icon deletes one. In the chart editor the metric is listed with a METRIC badge, ready to use as it is.

More metric examples
COUNT(DISTINCT order_id)                         -- orders
SUM(revenue) / NULLIF(COUNT(DISTINCT order_id), 0)  -- average order value
SUM(CASE WHEN returned THEN 1 ELSE 0 END)           -- returned lines

Columns

Give each column a display name and say what it holds. Descriptions appear in the chart editor and are what Insight AI and AI clients read to choose the right column, so revenue means the same thing to everyone.

The count
How many columns are documented. Undocumented columns are guessed at by the AI, so aim for all of them.
Display name
The label shown instead of the raw column name, such as Order date for order_date.
Description
Units, grain and anything ambiguous: "Units x unit price x (1 - discount), in US dollars. Excludes tax and shipping."
Sync from source
Read the columns again from the table or query, after it changes.

Data Explorer

A preview of the dataset's rows, as you're allowed to see them: row and column rules that cover you are applied. Use it to check a virtual dataset returns what you expect.

Configuration

Dataset Profile & Ownership

Business Description
What the dataset is for, in a sentence or two.
Business Owner
Who to ask about it.
Documentation URL
A link to your own documentation, if you have it.
Tags
Words that help people find it.
Certification Status
Draft, Certified, Experimental or Deprecated. Certify the datasets people should build on; deprecate the ones they shouldn't.

Performance & Query Limits

Preview Row Limit
How many rows previews show.
Chart Max Row Limit
The most rows a chart on this dataset can read.
Query Timeout (sec)
How long a query may run before it's cancelled.
Cache Timeout (sec)
How long results are reused. 0 means they never expire; -1 turns the cache off, so every chart load asks the database.

Autocomplete Filter Settings

Enable Autocomplete Suggestions lets dashboard filters on this dataset suggest values as people type. An Autocomplete Filter Predicate, such as order_date >= '2026-01-01', limits which rows the suggestions come from.

Used by

Everything built on the dataset: its charts, the dashboards that show them or filter on it, alerts and reports, security rules, and verified answers. Check it before you change the source or delete the dataset.