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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
hschultz
Partner - Creator
Partner - Creator

Creating lines per (Year&Month) in load

Hi all

I hope that someone is able to assist me.

I have a table with some detail including Start & End dates.

Basically what i want to do is create a colum that i can use as a link to another table. This colum needs to have the Dimension&Year&Month for the link. Here is an example of what i'm talking about.

This is the data

CustomerStart DateEnd Date"Other Detail"
AAA2012/01/012012/03/31*Colums of data
BBB2012/02/012012/04/30*Colums of data

This is what the result is supposed to be:

CustomerStart DateEnd Date"Other Detail"LINK Created
AAA2012/01/012012/03/31*Colums of dataAAA|2012|JAN
AAA2012/01/012012/03/31*Colums of dataAAA|2012|FEB
AAA2012/01/012012/03/31*Colums of dataAAA|2012|MAR
BBB2012/02/012012/04/30*Colums of dataBBB|2012|FEB
BBB2012/02/012012/04/30*Colums of dataBBB|2012|MAR
BBB2012/02/012012/04/30*Colums of dataBBB|2012|APR

So basically the data will be duplicated for as many months as the date makes it be active.

Thank you for the assistance

Labels (1)
1 Solution

Accepted Solutions
hschultz
Partner - Creator
Partner - Creator
Author

Here is the answer to my requirement

View solution in original post

5 Replies
Not applicable

Hi,

If you want to show 'LINK created' column in the chart then you can simply add an expression:

Customer & '|' & Year(Date field) & '|' & Month(Date field)

If you want to create a key to join these tables in data model then you have to define same expression in the script.

Hope this helps.

Regards,

Neha Rangari

hschultz
Partner - Creator
Partner - Creator
Author

It is not for a chart unfortunately. I need this in order to link to another table in my LOAD script

Not applicable

Could you please share tablenames & fieldnames from the script?

hschultz
Partner - Creator
Partner - Creator
Author

Sorry, but I don't understand what you need.

It's basically as i have stated there in the first post. Only with a few more colums.

hschultz
Partner - Creator
Partner - Creator
Author

Here is the answer to my requirement