Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
lost_rabbit
Contributor III
Contributor III

How to get Year of Week ISO ?

How to get the Year corresponding to ISO Week?

For Eg. Year of 12/30/2024 and 12/31/2024 should be 2025 as those days fall under ISO week 1 of 2025.

In my app, I need the ISO year for multiple days such as 
Year(currentday), year(currentday+7) , year(currentday+14) etc.

In snowflake there is a function called YEAROFWEEKISO, but couldn't find something similar in Qlik. Kindly help.

Thanks in advance.

Labels (1)
1 Solution

Accepted Solutions
lost_rabbit
Contributor III
Contributor III
Author

weekyear() function gave me the results I wanted. Also had to set these variable values in my script

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


https://help.qlik.com/en-US/qlikview/May2024/Subsystems/Client/Content/QV_QlikView/Scripting/DateAnd...

View solution in original post

2 Replies
lost_rabbit
Contributor III
Contributor III
Author

weekyear() function gave me the results I wanted. Also had to set these variable values in my script

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


https://help.qlik.com/en-US/qlikview/May2024/Subsystems/Client/Content/QV_QlikView/Scripting/DateAnd...