Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

lookup?

t1:

LOAD [customer number],

     [customer name]

FROM

E:\M\prac\mapping444\customer.xlsx

(ooxml, embedded labels, table is Sheet1);

t2:

LOAD year,

     month,

     [customer number],

     [budget amount]

FROM

E:\M\prac\mapping444\budget.xlsx

(ooxml, embedded labels, table is Sheet1);

t3:

load *,

Lookup('[customer name]','[customer number]',[customer number],'t1') as cusmer

Resident t2;

pls correct me where i am wrong?     because i am not getting any data for    cusmer

1 Solution

Accepted Solutions
dinuwanbr
Creator III
Creator III

Hi,

Do some alias and try. Following code works fine to me. (example)

t1:

LOAD,

     A as S,

     B as V,

     C as K

    

FROM

[New Microsoft Excel Worksheet.xlsx]

(ooxml, explicit labels, table is Sheet1);

t2:

LOAD

     A,

     B,

     C,

     lookup('V','K',B,'t1') as D

FROM

[New Microsoft Excel Worksheet.xlsx]

(ooxml, no labels, table is Sheet2);

t3:

load D

Resident t2;

BR,

Dinu'1

View solution in original post

3 Replies
dinuwanbr
Creator III
Creator III

Hi,

Try this

t1:

LOAD [customer number],

     [customer name]

FROM

E:\M\prac\mapping444\customer.xlsx

(ooxml, embedded labels, table is Sheet1);

t2:

LOAD year,

     month,

     [customer number],

     [budget amount],

     Lookup('[customer name]','[customer number]',[customer number],'t1') as cusmer

FROM

E:\M\prac\mapping444\budget.xlsx

(ooxml, embedded labels, table is Sheet1);

t3:

load *

Resident t2;

BR,

dinu'1

Not applicable
Author

even i tried no use

dinuwanbr
Creator III
Creator III

Hi,

Do some alias and try. Following code works fine to me. (example)

t1:

LOAD,

     A as S,

     B as V,

     C as K

    

FROM

[New Microsoft Excel Worksheet.xlsx]

(ooxml, explicit labels, table is Sheet1);

t2:

LOAD

     A,

     B,

     C,

     lookup('V','K',B,'t1') as D

FROM

[New Microsoft Excel Worksheet.xlsx]

(ooxml, no labels, table is Sheet2);

t3:

load D

Resident t2;

BR,

Dinu'1