Skip to main content
Defines the day that weeks start on for queries scoped to the topic. This parameter can be set dynamically using a user attribute, just like the model-level setting. See the Examples section for an example. For composite topics, Omni uses the day that all member topics agree on. If the member topics don’t agree, Omni falls back to the model-level setting and raises a validation warning.
week_start_day can also be set at the model and dimension levels. When set at more than one level, the most specific setting is applied: dimension overrides topic, and topic overrides model.

Syntax

Properties

string
The day of the week that weeks start on for queries scoped to this topic. Valid values are: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday.Can be set dynamically using user attributes.

Examples

Static value

Dynamic value using user attributes

This example assumes your Omni instance has an existing user attribute called week_start and that users have been assigned appropriate day values, such as Sunday for US users or Monday for European users.
Set week start day based on user's region