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

Announcements
Join us at Qlik Connect 2026 in Orlando, April 13–15: Register Here!
cancel
Showing results for 
Search instead for 
Did you mean: 
agni_gold
Specialist III
Specialist III

Generate calendar dates for a different field.

Hi All ,

I have one field in a QVD ,

And i want to generate a calendar for each value in different field

Example : Suppose i have one field in QDV as Region and region has 2 values A and B

Now i want ot create all dates for A and B for 2 years.

and its should other table as REGION and DATE with two column.

How can i do this

Labels (1)
1 Reply
swuehl
Champion III
Champion III

Maybe like

Let vStartDate = num(Today()); // or whatever defines the start of the two year period

NewTable:

LOAD DISTINCT Region as REGION

FROM YourQVD.qvd (qvd);

JOIN (NewTable)

LOAD Date( $(vStartDate) +Recno()-1) as DATE

Autogenerate Addyears($(vStartDate),2) - $(vStartDate) ;