Skip to main content Skip to complementary content


This setting defines if weeks are broken or not.



 In Qlik Sense, the regional settings are fetched when the app is created, and the corresponding settings are stored in the script as environment variables.

A North American app developer often gets Set BrokenWeeks=1; in the script, corresponding to broken weeks. A European app developer often gets Set BrokenWeeks=0; in the script, corresponding to unbroken weeks.

Unbroken weeks means that:

  • In some years, week 1 starts in December, and in other years, the last week of previous year continues into January.
  • According to ISO 8601, week 1 always has at least 4 days in January. In Qlik Sense, this can be configured using the ReferenceDay variable.

Broken weeks means that:

  • The last week of the year never continues into January.
  • Week 1 starts on January 1 and is, in most cases, not a full week.

The following values can be used:

  • 0 (=use unbroken weeks)
  • 1 (= use broken weeks)

Regional settings

Unless otherwise specified, the examples in this topic use the following date format: MM/DD/YYYY. The date format is specified in the SET DateFormat statement in your data load script. The default date formatting may be different in your system, due to your regional settings and other factors. You can change the formats in the examples below to suit your requirements. Or you can change the formats in your load script to match these examples. For more information, see Modifying regional settings for apps and scripts.

Default regional settings in apps are based on the user profile. These regional format settings are not related to the language displayed in the Qlik Cloud user interface. Qlik Cloud will be displayed in the same language as the browser you are using.

If you are an app creator, you can set the default region for apps you create. For more information, see Setting your preferred regional settings for creating apps and scripts in Qlik Cloud Analytics.


If you want ISO settings for weeks and week numbers, make sure to have the following in the script:

Set FirstWeekDay=0; Set BrokenWeeks=0; //(use unbroken weeks) Set ReferenceDay=4;

If you want US settings, make sure to have the following in the script:

Set FirstWeekDay=6; Set BrokenWeeks=1; //(use broken weeks) Set ReferenceDay=1;

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!