Skip to main content
QueryfulQL is the query language behind every report in Queryful. A query asks a question of your store’s data, like “what were my net sales last month” or “which products are returned most”, and returns a table you can turn into a chart. It follows ShopifyQL, the language behind Shopify’s own reports, so a query written for Shopify’s analytics usually runs here unchanged. You rarely need to write it yourself: the report page, Home and the AI assistant write it for you. But it’s always there to read, change and share.

Getting started

Each step adds one clause to the query before it, building from a single total to a chart.
FROM picks the sales dataset and SHOW picks the net_sales metric. With no date range, it covers all your history.
GROUP BY breaks the total down into a row for each sales channel.
DURING sets the date range, and ORDER BY sorts the rows.
COMPARE TO runs the query again over the month before, and WITH PERCENT_CHANGE adds the change.
VISUALIZE turns the table into a chart: here, a bar for each channel.
See Syntax for every clause, and Examples for more complete queries.

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: FROM and SHOW, 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.