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

Problem with load resident data from crosstable

Hi All.

I have a table:

NameJanuaryFebruaryMarch
Name 1102030
Name 2405060

When I load this table and make a crosstable, I see next table:

NameMonth
Data
Name 1January10
Name 1February20
.........
Name 2March60

Script:

First_table:

CrossTable(Month, Data)

LOAD Name,

     January,

     February,

      March

FROM (XLS file with deleted rows and columns)

It's OK and work great.

But later, i want create a new table from crosstable:

New_table:

LOAD Name,

     Data,

     Month

Resident First_table;

DROP Table First_table;

And I don't see any table. Clear. No New_table, no First_table.

Where a mistake? I don't understand.

I must load all columns from crosstable in other new table.

Thank you.

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Your second table is getting concatenated and then dropped with the first one. You have to use NoConcatenate key like:

First_table:

CrossTable(Month, Data)

LOAD Name,

     January,

     February,

      March

FROM (XLS file with deleted rows and columns)

NoConcatenate        

New_table:

LOAD Name,

     Data,

     Month

Resident First_table;

DROP Table First_table;

View solution in original post

3 Replies
tresesco
MVP
MVP

Your second table is getting concatenated and then dropped with the first one. You have to use NoConcatenate key like:

First_table:

CrossTable(Month, Data)

LOAD Name,

     January,

     February,

      March

FROM (XLS file with deleted rows and columns)

NoConcatenate        

New_table:

LOAD Name,

     Data,

     Month

Resident First_table;

DROP Table First_table;

Not applicable
Author

Add Noconcatenate just before Load in the Second table...

Qlikview is automatically concatenating second table to 1st table as fields are of same name.


Regards,
Dawar

Not applicable
Author

Tresesco, thak you very much.

It's work!