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

Generate additional column/field on LOAD

Hello,

I need to LOAD two xlsx tables. One holds data for year 2009, one for year 2010. Data structure is identical.

How do I create a new (pseudo-)field "Year" while I load the two tables and fill it with "2009" and "2010" at LOAD-time?

Best regards,

Georg

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Hi,

If i have understood your requirement right, you can try this:

LOAD *, 2009 as Year FROM data2009.qvd;

//CONCATENATE

LOAD *, 2010 as Year FROM data2010.qvd;

View solution in original post

2 Replies
tresesco
MVP
MVP

Hi,

If i have understood your requirement right, you can try this:

LOAD *, 2009 as Year FROM data2009.qvd;

//CONCATENATE

LOAD *, 2010 as Year FROM data2010.qvd;

Not applicable
Author

Thanks. that's what I needed.

I just needed single quotes .... '2009' as Year.

Tried it "2009" before but that was interpreted as a field name.

Best regards,

Georg