Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to create a calendar

Hi I am brand new to qlikview and I have a question i am hoping I can get some help with. I tried the following in the script to have dates for the past 2 years. but it gave me error. Any help will be much appreciated.

let start = floor(date(AddMonths(today(),-24));

let end = floor(date(Today()));

let numofdays = end - start+1;

Time_table:

LOAD

Distinct

AutoNumberHash128(MonthName(date($(start)+ RowNo() -1))) as Month_Seq,

MonthName(date($(start)+ RowNo() -1)) as Month_name,

MonthName(date($(start)+ RowNo() -1)) as My_month,

date($(start)+ RowNo() -1)as Date

AutoGenerate $(numofdays);

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Thanks Mike. That video looks really good and important. I will  check it out. However I found the error in my script.

  let start = floor(date(AddMonths(today(),-24));   in this line, I had missed a 'bracket' or parenthesis. So altogether it should have 3 of them, which I added and it worked! Thanks again

View solution in original post

3 Replies
Michael_Tarallo
Employee
Employee

Hi John - check this out and let us know if it helps you.

Creating A Master Calendar

Mike

Regards,
Mike Tarallo
Qlik
Anonymous
Not applicable
Author

Thanks Mike. That video looks really good and important. I will  check it out. However I found the error in my script.

  let start = floor(date(AddMonths(today(),-24));   in this line, I had missed a 'bracket' or parenthesis. So altogether it should have 3 of them, which I added and it worked! Thanks again

Michael_Tarallo
Employee
Employee

Great to hear, have a great night.

Regards,
Mike Tarallo
Qlik