Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

master calender help

hey,

what is master calender and how to use it. Can you give me some scenario.

3 Replies
its_anandrjs

If you have a fact table or there is transaction dates or common dates which is running in the system and that is the main date then you have to connect this date to any master calendar like if you need date dimensions or field like

Month,Year,Week,Weekstart,Quarter and etc many more normally the tables not keept this fields then we use master calendar.

See the Master Calendar Script

=======================

Let varMinDate = Num(Makedate(2006,1,1));

Let varMaxDate = Num(Makedate(Year(today()),Month(today()),Day(today())));

Datefield:

LOAD

Date($(varMinDate)+IterNo()-1) AS CommonDatefield,

Year(date($(varMinDate)+IterNo()-1)) as Year,

Month(date($(varMinDate)+IterNo()-1)) as Month,

Day(date($(varMinDate)+IterNo()-1)) as Day,

Time(date($(varMinDate)+IterNo()-1)) as Time,

'Q' & Ceil(Month(date($(varMinDate)+IterNo()-1)) / 3) AS Quarter,   

AUTOGENERATE (1)

WHILE $(varMinDate)+IterNo()-1<= $(varMaxDate);

In this CommonDateField is attached to the fact table date field.

Josh_Good
Employee
Employee

This video should help.

Re: Creating A Master Calendar

Joseph_Musekura
Support
Support

Hi,

Check the attached document. It explains how to.