Skip to main content
Every query starts with FROM and SHOW. FROM names the dataset, such as sales, orders or inventory. SHOW lists the metrics you want, separated by commas.

Renaming a column

Add AS "Label" after a metric to give its column your own heading. The label shows wherever the column does, including exports and scheduled reports.

Calculated columns

SHOW also takes calculations over its metrics, with +, -, *, /, numbers and brackets. Multiplication and division happen before addition and subtraction, and dividing by zero gives an empty value rather than an error. Give a calculated column a label with AS.
For a calculation you use often, make it a custom metric instead, and it’s available in every report.

Combining datasets

List more than one dataset in FROM, separated by commas, for metrics from each in one report. Each dataset is totalled on its own, and the results are matched on the dimensions in GROUP BY, which every listed dataset needs to have.
Which metrics you can show depends on the dataset. Its page lists them all.