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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
RA6
Creator
Creator

Match value to Multiple list

Hello,

 

Is it possible to match certain value to some other list?

For example:

 

0683p000009M6pu.png

 

0683p000009M6xP.png

 

For each row of main table, if columnA is found in list_1 AND columnB is found in list_2 AND columnD is found in list_3 OR list_4, it outputs the below result.

 

Expected Result

0683p000009M6xU.png

 

Is this one possible?

Can you advice please?

 

Best regards,

asadasing

Labels (2)
3 Replies
JR1
Creator III
Creator III

Hi,

Try the following:

In a tMap with your main table as input create lookups from all your four lookup tables and join them by the value to check (e.g. DEPARTMENT --> LIST_1). These must all be a Left Outer Joins (standard). In the output create a new column ("Column1" in your post) and put the following in there (replace the lookup table names with the correct "row" identifiers and "COLUMN" with the name of the column in the lookup:

(LIST_1.COLUMN != null && LIST_2.COLUMN != null && LIST_3.COLUMN != null && LIST_4.COLUMN != null) ? "MATCHES FOUND" : null

Hope this helps.

RA6
Creator
Creator
Author

Hello,

Thank you for you response.

Suppose the list1, list2, list3 and list4 is located in only 1 excel file, how can we achieve this?

Thank you.

asadasing
JR1
Creator III
Creator III

"One Excel file" can mean a lot of things. Do you mean four sheets in the same document, four tables in one sheet or all values in one table in one sheet? One way or the other, you will have to look into the tFileInputExcel component and how it works.