Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
louise119
Creator III
Creator III

Calendar

Would it be possible to create a calendar that is not related to the table being loaded?

1 Solution

Accepted Solutions
E_Røse
Creator II
Creator II

You can create another table with the calendar. As long as the calendar does not share any field names with the other tables, it will not be connected.

You can generate dates using the following code:

 

 

 

 

Set vFirstDate = date('01/01/2020');
Set vLastDate = date('12/31/2023');
Let vNoOfDays = $(vLastDate)-$(vFirstDate)+1;

myCal:
Load date($(vFirstDate)+rowno()) as date 
autogenerate(vNoOfDays);

 

 

The calendar can be created using derived fields of the date field, or with a new table using a resident load and date functions.

View solution in original post

2 Replies
E_Røse
Creator II
Creator II

You can create another table with the calendar. As long as the calendar does not share any field names with the other tables, it will not be connected.

You can generate dates using the following code:

 

 

 

 

Set vFirstDate = date('01/01/2020');
Set vLastDate = date('12/31/2023');
Let vNoOfDays = $(vLastDate)-$(vFirstDate)+1;

myCal:
Load date($(vFirstDate)+rowno()) as date 
autogenerate(vNoOfDays);

 

 

The calendar can be created using derived fields of the date field, or with a new table using a resident load and date functions.

louise119
Creator III
Creator III
Author

Thank you so much! It works!