Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.omni.co/llms.txt

Use this file to discover all available pages before exploring further.

Defines the set of timeframes available by default for every date and time field in the model. This overrides Omni’s built-in default set of raw, date, week, month, quarter, and year. Use this parameter to surface only the timeframes that matter for your use case (for example, dropping quarter and year for operational models, or adding hour for high-frequency event data). Individual date or time dimensions can override this set with their own timeframes parameter.

Syntax

default_timeframes: [<timeframe_1>, <timeframe_2>, ...]

Properties

default_timeframes
string[]
An array of timeframe names to use as the default for date and time fields in the model. The following timeframes are supported:
NameNotes
date
day_of_month
day_of_quarterBehaves as fiscal day of quarter when fiscal offset is applied
day_of_week_nameSorts by day_of_week_num
day_of_week_num
day_of_year
fiscal_quarterRequires fiscal_month_offset
fiscal_yearRequires fiscal_month_offset
hour
hour_of_day
millisecond
minute
month
month_nameSorts by month_num
month_num
quarter
quarter_of_year
raw
second
week
year

Examples

Limit defaults to day, week, and month
default_timeframes: [date, week, month]
Include hourly and fiscal granularities by default
default_timeframes: [date, week, month, quarter, year, hour, fiscal_quarter, fiscal_year]