Skip to main content
A report covers a date range, set in one of two ways: a named period with DURING, or a start and end with SINCE and UNTIL. Leave the date clause out and the report covers all your history. Dates are days in your store’s timezone, set in Settings › General. The date button on the report page and the date clause are the same thing: change one and the other follows.

DURING

DURING picks a named period:

SINCE and UNTIL

SINCE sets the first day and UNTIL the last, both included. Leave out UNTIL and the range runs to today.
Each can be: The startOf and endOf forms come for Day, Week, Month, Quarter and Year. startOfMonth(0) is the first of this month, endOfQuarter(-1q) the last day of last quarter.
A date written out stays fixed. Everything else is worked out on the day the report runs, so a saved or scheduled report always covers the right days. To compare the range with an earlier one, add COMPARE TO.