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: 
Rajeshhyd
Contributor III
Contributor III

Table not found error while using cross table and concatenate

Hi All,

Getting No table found table2 for the below script. Please help me resolve it

Table1:
CrossTable(Brd,Data,1)
sql
select
colum1,
column2
from table_B1
where condition
;

Table2:
CrossTable(Brd,Data,1)
sql
select
colum1,
column2
from table_B2
where condition
;



Availy:
load
Hash128(colum1,'Band',Brd) as ID,

colum2 as avail,
'Inter State' as Source,
Brd,
Data
Resident Table1;
Concatenate(Availy)

load
Hash128(colum1,'Band',Brd) as ID,
colum1 as avail,
' State' as Source,
Brd,
Data
Resident Table2;

store Availy into $(pQVDPath)Availy.qvd;

drop table Table1,Table2;

 

2 Replies
MarcoWedel

Both crosstable loads generate identical table structures (i.e. the resulting tables have columns 'colum1', 'Brd' and 'Data') and thus are auto concatenated. Hence Table2 is never created and therefore cannot be referenced.

 

hope this helps

Marco

Rajeshhyd
Contributor III
Contributor III
Author

I am doing resident load Table1, Table2 to modify the column data and try to load into new table and then load it to a QVD.

Availy:
load
Hash128(colum1,'Band',Brd) as ID,

colum2 as avail,
'Inter State' as Source,
Brd,
Data
Resident Table1;
Concatenate(Availy)

load
Hash128(colum1,'Band',Brd) as ID,
colum1 as avail,
' State' as Source,
Brd,
Data
Resident Table2;

store Availy into $(pQVDPath)Availy.qvd;

How can i resolve in this case