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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
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.

Labels (1)
3 Replies
its_anandrjs
Champion III
Champion III

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.