Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Excel Import CrossTable with Date column headers issue

Hi.

I am running into problems when I try to import an Excel 2010 file as a CrossTable that has dates along the column headers.

Excel looks like this:

AccountID1/11/20111/12/20111/01/20121/02/2012
50000592.01403.21341.71383.54
5702012091.5428311.87208022464.86
570301585.65-826.7284.11742.61
57310658.14853.252265.675696.31
57190226.82189.0993.18289.41
57010544936.79286851.96270210.77234297.24
5700057562.58196048.0159365.7162376.22
5704056896.3257235.561815.5562512.36
5705016393.0565603.8952262.0923759.06
570606636.50967.38-45.23
570702864.1421768.755600.1118810.41
570901425.972364.821374.281613.88

Script looks like this:

CrossTable(BalMonth, Balance)

LOAD AccountID,

     40848,

     40878,

     40909,

     40940

FROM

Book2.xlsx

(ooxml, embedded labels, table is Sheet3);

And when the script runs the resultant data looks like this:

AccountID BalMonth Balance
50000 40848 40848
57000 40848 40848
57010 40848 40848
57020 40848 40848
57030 40848 40848
57040 40848 40848
57050 40848 40848
57060 40848 40848
57070 40848 40848
57090 40848 40848
57190 40848 40848
57310 40848 40848
50000 40878 40878
57000 40878 40878
57010 40878 40878
57020 40878 40878
57030 40878 40878
57040 40878 40878
57050 40878 40878
57060 40878 40878
57070 40878 40878
57090 40878 40878
57190 40878 40878
57310 40878 40878
50000 40909 40909
57000 40909 40909
57010 40909 40909
57020 40909 40909
57030 40909 40909
57040 40909 40909
57050 40909 40909
57060 40909 40909
57070 40909 40909
57090 40909 40909
57190 40909 40909
57310 40909 40909
50000 40940 40940
57000 40940 40940
57010 40940 40940
57020 40940 40940
57030 40940 40940
57040 40940 40940
57050 40940 40940
57060 40940 40940
57070 40940 40940
57090 40940 40940
57190 40940 40940
57310 40940 40940

The column header data is replacing the data fields.

I can get around this by having text in the column headers.

Anybody seen this?

Cheers

Adam

4 Replies
swuehl
MVP
MVP

No, haven't seen this so far.

But I was able to reproduce your issue in QV11 IR, even with a simple LOAD ( No Crosstable LOAD). Strange.

Not applicable
Author

Hi Adam, try with this:

tmp:

CrossTable(AccountID, Balance)

LOAD AccountID as BalMonth,

     [57020.000000],

     [57030.000000],

     [57190.000000],

     [50000.000000],

     [57060.000000],

     [57090.000000],

     [57310.000000],

     [57070.000000],

     [57050.000000],

     [57000.000000],

     [57040.000000],

     [57010.000000]

FROM

[Book2.xlsx]

(ooxml, embedded labels, table is Sheet3, filters(

Transpose()

));

data:

noconcatenate load subfield(AccountID,'.',1) as AccountID,

BalMonth,

Balance

resident tmp;

drop table tmp;

Regards

Bill_Britt
Former Employee
Former Employee

Adam,

It would really help if you can upload the excel file. That way it doesn't have to be recreated by anyone that might want to help you.

Bill

Bill - Principal Technical Support Engineer at Qlik
To help users find verified answers, please don't forget to use the "Accept as Solution" button on any posts that helped you resolve your problem or question.
Anonymous
Not applicable
Author

CrossTable(BalMonth, Balance)
LOAD *
FROM
Book2.xlsx
(ooxml, embedded labels, table is Sheet3);

have a problem with the column names that are numbers, the solution is to replace the fields with *