<?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 Re: lookup function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/lookup-function/m-p/531498#M684663</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the doc I published on LOAD : &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-5698"&gt;http://community.qlik.com/docs/DOC-5698&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There is a section on lookup and Applymap functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 Jan 2014 13:18:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-18T13:18:05Z</dc:date>
    <item>
      <title>lookup function</title>
      <link>https://community.qlik.com/t5/QlikView/lookup-function/m-p/531497#M684662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can anyone explain lookup function &lt;/P&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jan 2014 13:13:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lookup-function/m-p/531497#M684662</guid>
      <dc:creator />
      <dc:date>2014-01-18T13:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: lookup function</title>
      <link>https://community.qlik.com/t5/QlikView/lookup-function/m-p/531498#M684663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the doc I published on LOAD : &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-5698"&gt;http://community.qlik.com/docs/DOC-5698&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There is a section on lookup and Applymap functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jan 2014 13:18:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lookup-function/m-p/531498#M684663</guid>
      <dc:creator />
      <dc:date>2014-01-18T13:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: lookup function</title>
      <link>https://community.qlik.com/t5/QlikView/lookup-function/m-p/531499#M684664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this document: &lt;A href="https://community.qlik.com/docs/DOC-3412"&gt;Joins and Lookups&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jan 2014 13:38:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lookup-function/m-p/531499#M684664</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-01-18T13:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: lookup function</title>
      <link>https://community.qlik.com/t5/QlikView/lookup-function/m-p/531500#M684665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor51"&gt;&lt;/A&gt;&lt;A name="lookup("&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;You can search in QlikView Help File or QlikView Reference Manual for lookup function...&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="Bold"&gt;&lt;STRONG&gt;lookup(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="Italic"&gt;fieldname, matchfieldname, matchfieldvalue [, tablename]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Returns the value of &lt;SPAN class="Italic"&gt;fieldname&lt;/SPAN&gt; corresponding to the first occurrence of the value &lt;SPAN class="Italic"&gt;matchfieldvalue&lt;/SPAN&gt; in the field &lt;SPAN class="Italic"&gt;matchfieldname&lt;/SPAN&gt;. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;Fieldname&lt;/SPAN&gt;, &lt;SPAN class="Italic"&gt;matchfieldname&lt;/SPAN&gt; and &lt;SPAN class="Italic"&gt;tablename&lt;/SPAN&gt; must be given as strings (e.g. quoted literals). &lt;/P&gt;&lt;P&gt;The search order is load order unless the table is the result of complex operations such as joins, in which case the order is not well defined. &lt;/P&gt;&lt;P&gt;Both &lt;SPAN class="Italic"&gt;fieldname&lt;/SPAN&gt; and &lt;SPAN class="Italic"&gt;matchfieldname&lt;/SPAN&gt; must be fields in the same table, specified by &lt;SPAN class="Italic"&gt;tablename&lt;/SPAN&gt;. If &lt;SPAN class="Italic"&gt;tablename&lt;/SPAN&gt; is omitted the current table is assumed. &lt;/P&gt;&lt;P&gt;If no match is found, null is returned. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider that you have Customer Table having customer information and Sales Table having customer name only.&lt;/P&gt;&lt;P&gt;You want to lookup customer id or customer country in sales table.&lt;/P&gt;&lt;P&gt;===============================================&lt;/P&gt;&lt;P&gt;Customer:&lt;/P&gt;&lt;P&gt;Load Text(ID) as ID, Name, Country Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; ID, Name, Country&lt;/P&gt;&lt;P&gt;&amp;nbsp; 001, A, Germany&lt;/P&gt;&lt;P&gt;&amp;nbsp; 002, B, Italy&lt;/P&gt;&lt;P&gt;&amp;nbsp; 003, C, France&lt;/P&gt;&lt;P&gt;&amp;nbsp; 004, D, Poland&lt;/P&gt;&lt;P&gt;&amp;nbsp; 005, F, Spain&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sale:&lt;/P&gt;&lt;P&gt;Load *, Lookup('Country','Name', CustomerName, 'Customer') as Country Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; CustomerName, Sale&lt;/P&gt;&lt;P&gt;&amp;nbsp; A, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp; B, 200&lt;/P&gt;&lt;P&gt;&amp;nbsp; C, 300&lt;/P&gt;&lt;P&gt;&amp;nbsp; D, 260&lt;/P&gt;&lt;P&gt;&amp;nbsp; E, 140&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Customer;&lt;/P&gt;&lt;P&gt;=============================&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;There are another function.... ApplyMap which is used and more fast than lookup but mapping table should have only two columns. One for reference and second as an end result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of ApplyMap and Lookup, you can join the table also, but sometimes for big database your application get slower and response time increased, so above two functions are handy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this help....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jan 2014 15:39:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lookup-function/m-p/531500#M684665</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-01-18T15:39:06Z</dc:date>
    </item>
  </channel>
</rss>

