Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Join this live chat April 6, 10AM EST - QlikView to Qlik Sense REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
garethct
Creator
Creator

Load from in Script

Hi all,

I'm trying to create a first vendor account number for each unit.

Below is my script,

trace ;

trace --- Customer ---;

LOAD VENDOR.C_COMPANY,

     VENDOR.ACCNO,

     %_VNO,

     %_C_GROUP,

     VENDOR.C_COMPANY_ORIG,

     VENDOR.C_NAME,

     VENDOR.CATEGORY,

     VENDOR.CATEGORY_USED,

     VENDOR.CATEGORYBUYER,

     VENDOR.REPNUMBER,

     VENDOR.REPNAME,

     VENDOR.C_GROUP,

////////////# Vendors per Reg////////////////

FirstSortedValue(VENDOR.ACCNO,UNIT.SOLD_DATE,1) as FirstVendor

    

    

FROM

[$(QVD_Path)\BUYER_customer.qvd]

(qvd);

I believe it's incorrect because UNIT.SOLD_DATE isn't in the same table, it is loaded from the Unit table before the Customer table. How do I get around this?

Thanks

Gareth

3 Replies
tresesco
MVP
MVP

If the tables are rightly linked with key field, you could use FirstSortedOrder() in the front-end in a chart. Otherwise, to do it in the script, you have to join the tables and bring it in the same table.

garethct
Creator
Creator
Author

Thanks for your response,

How would I join the tables?

Thanks

Gareth

kawamuram
Creator II
Creator II

Hi,

Could you share the tables you need to join?

Thanks