Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Buchannagari
Contributor II
Contributor II

Need to create Master Calendar

Hi ,

Buchannagari_0-1652939367011.png

That image is SAP data calendar , i want to create same calendar in Qlik sense .

and the requirement is they want data from 01/01/2022 to 
01/01/2050

LOAD * INLINE [
Date
01/01/2022
01/01/2050
];

I have created master calendar but weeks are not coming like SAP calendar

from SAP calendar 1st week  started from 3rd but in qlik 1st week stared from 1st january 2022

so , data is not correct for the selection.

can anyone please help me how to get it in Qlik

Regards,

Buchanangari.

 

Labels (1)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

SAP is using ISO Weeks, unbroken weeks

The reason your week 1 is starting from 1st January is because this variable is set to 1;

SET BROKENWEEKS = 1; 

You can either change this to 0

OR

specify to use unbroken weeks in your calendar script as below

,Week(tempDate,0,0,4)  as  Week

 

 

Refer this

https://help.qlik.com/en-US/sense/February2022/Subsystems/Hub/Content/Sense_Hub/Scripting/DateAndTim...

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

1 Reply
vinieme12
Champion III
Champion III

SAP is using ISO Weeks, unbroken weeks

The reason your week 1 is starting from 1st January is because this variable is set to 1;

SET BROKENWEEKS = 1; 

You can either change this to 0

OR

specify to use unbroken weeks in your calendar script as below

,Week(tempDate,0,0,4)  as  Week

 

 

Refer this

https://help.qlik.com/en-US/sense/February2022/Subsystems/Hub/Content/Sense_Hub/Scripting/DateAndTim...

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.