Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Vishnu_murthy
Contributor
Contributor

Both Subfield and Link table are used in same table

Sample:

LOAD
DealerCode as %link1,
PartNumber & PartDesc as %link2,
DealerCode,
DealerName,
BranchName,
AREAOFFICE,
ZONE,
Code,
Category,
[Main Dealer Code],
ChassisNo,
MODELCODE,
ModelDesc,
CurrentKMReading,
EngineHrs,
IsUnderSWarranty,
DIVISON,
SaleDate,
RoNumber,
ROOpeningDate,
[RO TIme],
SrvTypeDesc,
CustomerCode,
CustomerName,
PartNumber,
PartDesc,
Category.1,
Platform,
[landedcost/PC],
Qty,
BasicValue,
[Landed cost],
Profit,
[% Profit],
BillableType,
[BILABLE TYPE],
INVOICENO,
INVOICEDATE,
[INVOICE TIME],
MRP,
NDP,
sheet
FROM
[C:\Users\a2z\Downloads\Test file.xlsx]
(ooxml, embedded labels, table is [1.2 Parts sale & Profitability ]);

 

 

Outstading:

LOAD

[Customer- CCA],
SubField([Customer- CCA], '-', 1) AS DealerCode,
DealerCode as %link1,
Customer,
Name,
City,
[Area Office],
State,
Zone,
Category as Category_out,
Remark,
[Credit Control Area],
CCA,
[Credit Limit],
Outstanding,
Balance,
[30-Mar-22],
[06-Apr-22],
[13-Apr-22],
[20-Apr-22],
[29-Apr-22],
RTGS,
[WARRANTY CREDIT]
//DealerCode & Category as Link1
FROM
[C:\Users\a2z\Downloads\Test file.xlsx]
(ooxml, embedded labels, table is [4.Outstading and aging Report]);

 

 

Here two fields are matched and Systhnices keys are formed how to created link table or else another other option suggest

Labels (3)
1 Reply
BrunPierre
Master
Master

The ideal approach would be to force concatenate the two tables just as it is. Perhaps, another way is to comment or remove the common field(s) that causes the synthetic keys and are not required in the data model. In that case, the DealerCode field may be redundant since the %link1 field appears to be the one that logically links both tables. If those synthetic keys are needed in the data model, then you would have to create your unique bit value for each distinct combination of the concatenated columns (Composite Keys).