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

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
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
tresB
Champion III
Champion III

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

tresB
Champion III
Champion III

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 II
Creator II

Hi,

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

My situation is same your descriptoin above

Thanks