Skip to main content
Every report runs over a date range. StockfulQL sets that range in one of two ways: a named range with DURING, or an explicit start and end with SINCE and UNTIL. Leave the date clause out entirely to read all of your history.

DURING

DURING picks a named calendar range. It is the quickest way to cover a whole period.
Named ranges include today, yesterday, this_week, last_week, this_month, last_month, this_quarter, last_quarter, this_year, and last_year.

SINCE and UNTIL

SINCE sets the start of the range and UNTIL sets the end. Both take an operand that resolves to a date.
Operands can be: The period functions come in startOf... and endOf... forms over Day, Week, Month, Quarter, and Year. For example, SINCE startOfDay(-90d) UNTIL today covers the last ninety days.
To compare the range against an earlier one, add COMPARE TO. To break the range into buckets over time, add TIMESERIES.