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: 
Not applicable

Never ending script execution

Hello all,

I am quite new with qvw, I have tried to create a master calendar to show only years from 2008 to 2030. Following instructions I've found in the community I managed to set it up but when I hit RELOAD the script runs for more than 10mins while the AUTOGENERATE (1) stops at 187.876.841.

should I start thos from scratch?!

thanks all

1 Solution

Accepted Solutions
er_mohit
Master II
Master II

hiiii

try this

// Calender

LET vDateMin = Num(MakeDate(2008,1,1));

LET vDateMax = Floor(MakeDate(2030,12,31));

LET vDateToday = Num(Today());

TempCalendar:

LOAD

$(vDateMin) + RowNo() - 1 AS DateNumber,

Date($(vDateMin) + RowNo() - 1) AS TempDate

AUTOGENERATE 1

WHILE $(vDateMin)+IterNo()-1<= $(vDateMax);

Calender:

LOAD

Date(TempDate,'DD-MM-YYYY' ) AS CalendarDate,

Year(TempDate) AS CalendarYear

RESIDENT TempCalendar ORDER BY TempDate ASC;

DROP TABLE TempCalendar;

View solution in original post

2 Replies
er_mohit
Master II
Master II

hiiii

try this

// Calender

LET vDateMin = Num(MakeDate(2008,1,1));

LET vDateMax = Floor(MakeDate(2030,12,31));

LET vDateToday = Num(Today());

TempCalendar:

LOAD

$(vDateMin) + RowNo() - 1 AS DateNumber,

Date($(vDateMin) + RowNo() - 1) AS TempDate

AUTOGENERATE 1

WHILE $(vDateMin)+IterNo()-1<= $(vDateMax);

Calender:

LOAD

Date(TempDate,'DD-MM-YYYY' ) AS CalendarDate,

Year(TempDate) AS CalendarYear

RESIDENT TempCalendar ORDER BY TempDate ASC;

DROP TABLE TempCalendar;

Not applicable
Author

ity worked!

 

thanks!