Getting started
Each step adds one clause to the query before it, building from a single total to a chart.What were my net sales?
What were my net sales?
FROM picks the sales dataset and SHOW picks the net_sales metric. With no date range, it covers all your history.Which channels did they come from?
Which channels did they come from?
GROUP BY breaks the total down into a row for each sales channel.Just last month, biggest first
Just last month, biggest first
DURING sets the date range, and ORDER BY sorts the rows.How does that compare with the month before?
How does that compare with the month before?
COMPARE TO runs the query again over the month before, and WITH PERCENT_CHANGE adds the change.Show it as a chart
Show it as a chart
VISUALIZE turns the table into a chart: here, a bar for each channel.Where you’ll meet it
The same query shows up in a few places:The parts of a query
- Syntax is the set of clauses:
FROMandSHOW,WHERE,GROUP BY, date ranges, comparisons,TIMESERIES, sorting, limits and charts. - Datasets are the data you can ask about, from sales and orders to inventory, payouts and sessions. Each dataset’s page lists its metrics, dimensions and filters.
- Linked records are the related things a dataset reaches, like the customer behind an order, and their fields.

