Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
In all Qlik Applications we need to have Master Calendar for Date Analysis.
The below Script will help to create master calendar with minimum steps.
The below Master Calendar script can be store it as QVS File.
In Transform Section, we can just load that QVS File Using Must_Include statement.
Ex: $(Must_Include=$(vScriptPath)/SubRoutine_MasterCalender.qvs);
After loading single fact or if multiple facts then after link table , we can call master calendar subroutine as like below.
CALL Create_Calender ('MC_Date','MasterCalender',1,1,4);
// =========================================================
// Script:1 ==> Date Field Creation
// =========================================================
// =========================================================
// Script:2 ==> Subroutine
// =========================================================
// =========================================================
// Script:1 ==> Call Subroutine
// =========================================================
Wouldn't it be much simpler to create a global master-calendar and each application picked their needed fields + periods?