QScript WeightCategoryDateRef
Jump to navigation
Jump to search
WeightCategoryDateRef
References a Date/Time period category by an inclusive-start, exclusive-end date range ([dateFrom, dateTo)). This is the canonical way to reference a date period; it is unaffected by data refreshes, filtering, or aggregation changes. Enumerate the available period buckets via question.variables[0].periods — each PeriodInfo exposes start and end to use as dateFrom and dateTo.
dateFrom
The start of the referenced date range (inclusive).
dateTo
The end of the referenced date range (exclusive).
question
The question that owns the referenced category.
type
Returns the name we use to refer to this class in the documentation.