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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
bnelson111
Creator II
Creator II

Join two load table fields into one new field.

This is one i have been struggling with, is it possible from the loaded tables below to make a new field to link to.

i would like to have the CustItemRef from [So info]: and ShipReqNum from [Shipping info]:

into text([CustItemRef]&[ShipReqNum]) as 1,

is this possible??

[Shipping info]:

LOAD

ShipReqNum,

    ShipQty,

    Consignment,

    CustRef,

    SOrderNum;

SQL SELECT

    ShipReqNum,

    ShipQty,

    Consignment,

    CustRef,

    SOrderNum

FROM PUB."PV_ShipReqLine";

left join

[So info]:

LOAD FCUnitPrice,

ReqDate,

    UnitPrice,

CustItemRef,

SOrderNum,

ItemCode;

SQL SELECT FCUnitPrice,

CustItemRef,

ReqDate,

    UnitPrice,

    SOrderNum,

ItemCode

FROM PUB."PV_SOrderLine";

1 Solution

Accepted Solutions
maxgro
MVP
MVP

hope I understand your question

add at the end of your script

NewShippingInfo:

noconcatenate

load

     *,

     [CustItemRef]&[ShipReqNum] as NewField

resident [Shipping info];

drop table [Shipping info];

rename table NewShippingInfo to [Shipping info];

View solution in original post

4 Replies
Peter_Cammaert
Partner - Champion III
Partner - Champion III

The simplest way to do this is to

NewShippingInfo:

NOCONCATENATE

LOAD *, [CustItemRef] & [ShipReqNum] AS NewField

RESIDENT ShippingInfo;

DROP Table ShippingInfo;

RENAME TABLE NewShippingInfo INTO ShippingInfo;

after the JOIN or something.

Peter

maxgro
MVP
MVP

hope I understand your question

add at the end of your script

NewShippingInfo:

noconcatenate

load

     *,

     [CustItemRef]&[ShipReqNum] as NewField

resident [Shipping info];

drop table [Shipping info];

rename table NewShippingInfo to [Shipping info];

bnelson111
Creator II
Creator II
Author

Thanks, Brilliant

bnelson111
Creator II
Creator II
Author

Thanks, Brilliant