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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
tamilarasu
Champion
Champion

Prefix code to calendar days

Hi,

I have created a 3 years calendar table by using load script and total of 1096 days. Now, I want to add 20 country codes to each date. I am not sure how to achieve this as I am new to Qlikview.

For Ex:

                SS.PNG

Likewise I need to prefix the 20 country code to all 1096 days.

Thanks in advance.

13 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this script

Temp:

LOAD

*

INLINE [

Country

India

USA

UK];

JOIN

LOAD

*

INLINE [

Date

1/1/2014

1/2/2014

1/3/2014];

Data:

LOAD

*,

Country & Date AS Key

RESIDENT Temp;

DROP TABLE Temp;

Hope this helps you.

Regards,

jagan.

anbu1984
Master III
Master III

Final_Calendar:

Load

Country,FKDAT,

  Country &''& FKDAT as SalesOrgDate

  Resident Country;

tamilarasu
Champion
Champion
Author

Hi Jagan. Working fine now. Thank you.

tamilarasu
Champion
Champion
Author

Thank you all.