<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Multiple lookup in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-lookup/m-p/336615#M704696</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys for all your contributions. I think i will try Gandalf and Anosh's solution and that will do the trick. Once again thanks a ton buddies, you rock &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 May 2012 04:46:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-07T04:46:12Z</dc:date>
    <item>
      <title>Multiple lookup</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-lookup/m-p/336610#M704691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Please help me on below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables and i need to limit the second table based on first table on 2 fileds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Table A&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Employee Code&lt;/P&gt;&lt;P&gt;Employee Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Table B&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Order Number&lt;/P&gt;&lt;P&gt;Sales_responsible_Employee code&lt;/P&gt;&lt;P&gt;Delivery_responsible_Employee code&lt;/P&gt;&lt;P&gt;amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need is that table B should only load the rows where either sales responsible or delivery responsible is within a given list of employee names from table A (say 'Marc', 'Peter', 'Mike').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to make such a script ? If yes, kindly giude me on how can it be done ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Devang.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 13:08:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-lookup/m-p/336610#M704691</guid>
      <dc:creator />
      <dc:date>2012-05-04T13:08:19Z</dc:date>
    </item>
    <item>
      <title>Multiple lookup</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-lookup/m-p/336611#M704692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try the exists function. &lt;/P&gt;&lt;P&gt;For instance when loading the second table you could use:&lt;/P&gt;&lt;P&gt;where exists(&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;Employee Code&lt;/SPAN&gt;,&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;Sales_responsible_Employee code&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 13:18:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-lookup/m-p/336611#M704692</guid>
      <dc:creator />
      <dc:date>2012-05-04T13:18:10Z</dc:date>
    </item>
    <item>
      <title>Multiple lookup</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-lookup/m-p/336612#M704693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and if you want to check either table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where exists(&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;Employee Code&lt;/SPAN&gt;,&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;Sales_responsible_Employee code&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;or exists(&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;Employee Code&lt;/SPAN&gt;,Delivery&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;_responsible_Employee code&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 13:22:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-lookup/m-p/336612#M704693</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2012-05-04T13:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple lookup</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-lookup/m-p/336613#M704694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exist and OR may slow down the script performance. You can use right and outer join to load the required data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Emp:&lt;/P&gt;&lt;P&gt;Load EmpCode, EmpName&lt;/P&gt;&lt;P&gt;from &amp;lt;tablename&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Order1:&lt;/P&gt;&lt;P&gt;rightjoin(Emp) load &lt;/P&gt;&lt;P&gt;Order Number ,&lt;/P&gt;&lt;P&gt;Sales_responsible_Employee_code as EmpCode,&lt;/P&gt;&lt;P&gt;Sales_responsible_Employee_code as SREC1,&lt;/P&gt;&lt;P&gt;Delivery_responsible_Employee_code as DREC1&lt;/P&gt;&lt;P&gt;amount&lt;/P&gt;&lt;P&gt;from &amp;lt;Ordertable&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Order2:&lt;/P&gt;&lt;P&gt;noconcatenate(Order1)&lt;/P&gt;&lt;P&gt;rightjoin(Emp) &lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;Order Number ,&lt;/P&gt;&lt;P&gt;Sales_responsible_Employee_code as SREC2,&lt;/P&gt;&lt;P&gt;Delivery_responsible_Employee_code as EmpCode,&lt;/P&gt;&lt;P&gt;Delivery_responsible_Employee_code as DREC2&lt;/P&gt;&lt;P&gt;amount&lt;/P&gt;&lt;P&gt;from &amp;lt;Ordertable&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Outer Join on Order Number Column&lt;/P&gt;&lt;P&gt;Order:&lt;/P&gt;&lt;P&gt;outer join(Order1) load Order Number, SREC2, EmpCode as EmpCode2, DREC2&amp;nbsp; from Order2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check the performance of both of the script if you data is very huge and then decide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this help,&lt;BR /&gt;Anosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 13:58:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-lookup/m-p/336613#M704694</guid>
      <dc:creator />
      <dc:date>2012-05-04T13:58:51Z</dc:date>
    </item>
    <item>
      <title>Multiple lookup</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-lookup/m-p/336614#M704695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also use lookup function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where lookup('Emp Code', 'Emp Name','&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;Sales_responsible_Employee code&lt;/SPAN&gt;') is not null&lt;/P&gt;&lt;P&gt;or lookup('Emp Code', 'Emp Name','Delivery&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;_responsible_Employee code&lt;/SPAN&gt;') is not null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 14:06:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-lookup/m-p/336614#M704695</guid>
      <dc:creator />
      <dc:date>2012-05-04T14:06:11Z</dc:date>
    </item>
    <item>
      <title>Multiple lookup</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-lookup/m-p/336615#M704696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys for all your contributions. I think i will try Gandalf and Anosh's solution and that will do the trick. Once again thanks a ton buddies, you rock &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 04:46:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-lookup/m-p/336615#M704696</guid>
      <dc:creator />
      <dc:date>2012-05-07T04:46:12Z</dc:date>
    </item>
  </channel>
</rss>

