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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Master calendar

Hi all

How can i create master calendar, if i have onlly this data?  i need year, yearmonth dimensions.

Labels (1)
1 Solution

Accepted Solutions
its_anandrjs
Champion III
Champion III

Create another master calendar table see the load script

Source:

LOAD

Period

FROM

Calendar.xlsx

(ooxml, embedded labels, table is Sheet1);

MasaterCalendar:

LOAD

Period,

Year(Date#(Right(Period,4),'YYYY')) as Year,

Month(Date#(Capitalize(Left(Period,3)),'MMM')) as Month,

MonthName(MakeDate(Year(Date#(Right(Period,4),'YYYY')), Month(Date#(Capitalize(Left(Period,3)),'MMM')))) AS MonthYear

Resident Source;

View solution in original post

3 Replies
ashfaq_haseeb
Champion III
Champion III

Hi,


Use the below code.

Directory;

LOAD Period,

Date(Date#(Period,'MMM YYYY')) as Date,

year(Date#(Period,'MMM YYYY')) as Year,

MonthName(Date#(Period,'MMM YYYY')) as Month_Year

FROM

Calendar.xlsx

(ooxml, embedded labels, table is Sheet1);

Regards

ASHFAQ

its_anandrjs
Champion III
Champion III

Create another master calendar table see the load script

Source:

LOAD

Period

FROM

Calendar.xlsx

(ooxml, embedded labels, table is Sheet1);

MasaterCalendar:

LOAD

Period,

Year(Date#(Right(Period,4),'YYYY')) as Year,

Month(Date#(Capitalize(Left(Period,3)),'MMM')) as Month,

MonthName(MakeDate(Year(Date#(Right(Period,4),'YYYY')), Month(Date#(Capitalize(Left(Period,3)),'MMM')))) AS MonthYear

Resident Source;

Not applicable
Author

Thanks!!