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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Concatenating two tables

Hi All,

Table1:

InvooiceNoCustCodeProdCode
110100
220200
330300
440400

Table2:

InvoiceNoCustCodeProdCode
110100
220200
990300
880400
550500
660600
770700

Table3:

InvoiceNo
Table1.CustCode
Table2.CustCode
11010
22020
330-
440-
5
50
6
60
7
70
8
80
9
90

how to achieve Table3 from table 1 and table2?

Thanks.

13 Replies
SunilChauhan
Champion II
Champion II

or in exact columns only need to change path i believee

table1:

Load

InvooiceNo,

CustCode,

ProdCode

from table1;

table2:

Join(table1)

Load

InvooiceNo,

CustCode,

ProdCode

from table2;

table3:

Load

ProdCode,

BrandCode ,

BrandName

from table3;

Sunil Chauhan
Not applicable
Author

Hi Sunil,

Please Find attached of my qvd file.

Thanks,

Sandeepa

SunilChauhan
Champion II
Champion II

In Data Tab in script

use this

IMSIRR:
LOAD CustCode,
     TransType,
     InvoiceNo,
     InvoiceDate,
     ProdCode,
     Qty,
     Amount,
     InvType,
     Week(MakeDate(Left( InvoiceDate,4), Mid(InvoiceDate, 5, 2), Right(InvoiceDate,2))) as Week,
     'IMS' as Source
FROM
C:\OwnExtractImsFiles\FullDataofIMSdonotdelete.txt
(txt, codepage is 1252, embedded labels, delimiter is ',', msq);

Join(IMSIRR)
LOAD CustCode,
     TransType,
     InvoiceNo,
     InvoiceDate,
     ProdCode,
     Qty,
     LineValue,
     Type as InvType,
     Week(MakeDate(Left( InvoiceDate,4), Mid(InvoiceDate, 5, 2), Right(InvoiceDate,2))) as Week,
     'IRR' as Source
FROM

(txt, codepage is 1252, embedded labels, delimiter is ',', msq);

hope this helps

Sunil Chauhan
its_anandrjs
Champion III
Champion III

Hi,

I think you have to load data some thing in sample file.

See the attached

Rgds

Anand