Why do you need a master calendar? How is the calendar created?
Fills gaps in the data Allows you to generate additional fields 1. Acquire range WeekNum, Month, Year, etc
Without Master Calendar 2. Generate temporary calendar
Each data point represents a transaction TemporaryCalendar: This could mean lost insights LOAD 2 DATE($(vFirstDate) + ROWNO() -1) AS TempDate AUTOGENERATE 1 $(vLastDate) - $(vFirstDate) + 1;
Its not clear that 3. Generate master calendar
there was no activity on MasterCalendar: 15/06/2015 LOAD TempDate AS OrderDate, With Master Calendar WEEK(TempDate) AS Week, Now we see $0 sales on the 15th YEAR(TempDate) AS Year, MONTH(TempDate) AS Month, DAY(TempDate) AS Day, 2 WEEKDAY (TempDate) AS Weekday, 1 'Q' & CEIL(MONTH(TempDate) / 3) AS Quarter, DATE(MONTHSTART(TempDate), 'MMM-YYYY') AS MonthYear, WEEK(TempDate) & '-' & YEAR(TempDate) AS WeekYear RESIDENT TemporaryCalendar; 3 DROP TABLE TemporaryCalendar; 2016 QlikTech International AB. All rights reserved. Qlik, Qlik Sense, QlikView, QlikTech, Qlik Cloud, Qlik DataMarket, Qlik Analytics Platform and the Qlik logos are trademarks of QlikTech International AB which have been registered in multiple countries. Other marks and logos mentioned herein are trademarks or registered trademarks of their respective owners. Use of any and all of the foregoing is subject to the written approval of Qlik.