Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

CrossTable and Concatenate

Hi - sorry I know this topic has been posted before but I couldn't understand the solutions posted in this forum and am wondering if anyone can help clarify? Thanks

I am trying to do something like this which gives me an error message because apparently, we can't concatenate 2 cross tables together. 

Test:
CROSSTABLE(Category, Numerator, 4)
LOAD
...
FROM [...]
(txt, codepage is 28591, embedded labels, delimiter is ',', msq);

CONCATENATE(Test)
CROSSTABLE(Category, Numerator, 4)
LOAD
'...
FROM [...]
(txt, codepage is 28591, embedded labels, delimiter is ',', msq)
;

I know in other posts, they talked about LOAD * RESIDENT ... and DROP TABLE ... but I can't get the syntax right - any help is greatly appreciated.

Labels (1)
1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try like:

CTable1:
Crosstable (....
...;

CTable2:
Crosstable (....
...;
NoConcatenate
Final:
Load * resident CTable1;
Concatenate
Load * resident CTable2;

Drop Tables CTable1, CTable2;

View solution in original post

4 Replies
Lisa_P
Employee
Employee

If all the fields are the same, you won't need the Concatenate prefix, it should autoConcatenate

tresesco
MVP
MVP

Try like:

CTable1:
Crosstable (....
...;

CTable2:
Crosstable (....
...;
NoConcatenate
Final:
Load * resident CTable1;
Concatenate
Load * resident CTable2;

Drop Tables CTable1, CTable2;
Anonymous
Not applicable
Author

great thanks!

niranjana
Creator
Creator

Hi,

I tried your logic , but it shows error as "Second table not found".

My situation is same your descriptoin above

Thanks