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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Doing different Lookups base on a condition from another table

TableA:

LOAD A,

           PRICE

FROM

somewhere

TableB:

LOAB B,

IF(LEN(A)='5', LOOKUP('PRICE', 'A', LEFT(B, 5), 'TableA',   LOOKUP('PRICE', 'A', LEFT(B, 9), 'TableA')) AS NEW_PRICE

FROM

somewhere

How can I do 2 different lookups as shown in TableB base on the length of a field A in TableA? Any help appreciated!!!!

2 Replies
sunny_talwar

Would you be able to share some sample data and explain what the desired output is from that sample?

Not applicable
Author

Hi

Take a look at mapping tabels and ApplyMap in help.qlik.com