Requirements
Must be used withcancel_query_filter: true. Without cancel_query_filter the measure will filter for both the query date and the offset date, which will typically return zero results.
Syntax
Properties
The time or date field to filter on, specified in the format
view_name.field_name.The time offset to apply relative to the query’s date filter. For example,
2 years, 30 days, etc.Must be set to
true when using date_offset_from_query. This prevents the filter from applying both the query date and the offset date and yielding unexpected (typically zero) results.Examples
For this example, assume the current month isNovember 2024. If you apply a filter of last month and add the following measure to your query, the results will show the count from October 2022.