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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Load different columns from multiple excel files?

Hi All,

          I have yearwise 4 excel files. Every file having current year and previous year columns. for eg: for 2011 there is one column "Value 2011".similarly 2012 having columns "Value 2011" & "Value 2012"and so on.

How can we load this excel in a single load statement so that next year file Qlikview can automatically read the additional column?

Please help me in this...


Thanks,

Amruta

13 Replies
Not applicable
Author

Hi Satyadev,

Here i attach some excel files without data.

Please check and let me know.

Thanks,

Amruta

Anonymous
Not applicable
Author

See attachment.

Thanks

MarcoWedel

Hi Amruta,

another solution could be:

table1:

CrossTable(Year, [Total number of Hours], 9)

LOAD AutoNumberHash128(FileBaseName(), RecNo()) as RecID,*

FROM

(ooxml, embedded labels, table is Sheet1);

table2:

LOAD RecID,

     Right(Year, 4)as Year,

     [Total number of Hours]

Resident table1;

DROP Fields Year, [Total number of Hours] From table1;

table3:

NoConcatenate

LOAD Distinct *

Resident table1;

DROP Table table1;

QlikCommunity_Thread_122060_Pic2.JPG.jpg

pivot table:

QlikCommunity_Thread_122060_Pic1.JPG.jpg

I used a version of your excel files with reduced column numbers and some random data.

You would have to adapt the crosstable load accordingly.

hope this helps

regards

Marco

Not applicable
Author

Hi Marco Wedel,

     Thanks for your help !!!

     Now its working..I am able to load all the files in a single load.

Thanks,

Amruta