Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
katarzyna00001
Contributor
Contributor

Qlik AutoCalendar week return wrong value

In stead od W14 autocalendar display W15. wrong_week.PNG

1 Solution

Accepted Solutions
Dalton_Ruer
Support
Support

Be sure to refer to the documentation for the Week function.  There are 2 settings that you can manipulate to define when your first week should start.  https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/DateA...

Below you will see that by default if I just ask for the Week Friday January 1 is in the first week, but Tuesday January 5 (first full week) is actually week 2 because of the way the previous week ended. 

In the last column though you can see see that if I say the weeks should start on Monday and that I want to use Unbroken weeks) it keeps 1/1 in the 53rd week of 2020 since I don't want weeks to be broken. And then April 5 is in week 14 as you desire. 

Dalton_Ruer_0-1620738958938.png

If you don't like the default way the AutoCalendar works you can change it by manipulating the two flags as needed for your environment. 

 

View solution in original post

1 Reply
Dalton_Ruer
Support
Support

Be sure to refer to the documentation for the Week function.  There are 2 settings that you can manipulate to define when your first week should start.  https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/DateA...

Below you will see that by default if I just ask for the Week Friday January 1 is in the first week, but Tuesday January 5 (first full week) is actually week 2 because of the way the previous week ended. 

In the last column though you can see see that if I say the weeks should start on Monday and that I want to use Unbroken weeks) it keeps 1/1 in the 53rd week of 2020 since I don't want weeks to be broken. And then April 5 is in week 14 as you desire. 

Dalton_Ruer_0-1620738958938.png

If you don't like the default way the AutoCalendar works you can change it by manipulating the two flags as needed for your environment.