<?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>article Never look down – The Lookup() Story in Member Articles</title>
    <link>https://community.qlik.com/t5/Member-Articles/Never-look-down-The-Lookup-Story/ta-p/1485770</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P align="center" style="text-align: left;"&gt;&lt;EM&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.0pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;STRONG&gt;What it is used for?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;To return values from another table field based on matching field value from current table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Typically used when only one field records from another table are needed.&lt;/P&gt;&lt;P&gt;(You are dropping this (second) table later on.&lt;SPAN lang="EN-GB" style="font-size: 8.0pt;"&gt;(see below) &lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;How does it look like?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;&lt;IMG __jive_id="77881" alt="how does it look.png" class="jive-image image-1" src="/legacyfs/online/77881_how does it look.png" style="height: auto;" /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How is it design?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;EM&gt;dual&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; - this is not actual part of the function but&amp;nbsp; prefix used to indicate what kind of value this function returns –in this case it means that this function can return numbers and characters&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;EM&gt;Lookup &lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;- function name&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and four arguments:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;EM&gt;field_name&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; – is the name of a field in the &lt;STRONG&gt;other &lt;/STRONG&gt;table – in the table where we want the value &lt;STRONG&gt;to take &lt;/STRONG&gt;&lt;STRONG&gt;from&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;EM&gt;match_field_name-&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; is the name of a field in the &lt;STRONG&gt;other &lt;/STRONG&gt;table&lt;STRONG&gt; – &lt;/STRONG&gt;this is the matching value to the next argument&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;----&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN style="text-decoration: underline;"&gt;match_field_value&lt;/SPAN&gt; &lt;/EM&gt;- &lt;/STRONG&gt;is the name of field in the &lt;STRONG&gt;this &lt;/STRONG&gt;table-matching with previous argument&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;EM&gt;[, table_name]&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; - This is name of the &lt;STRONG&gt;other &lt;/STRONG&gt;table (this argument is optional if omitted current table is used)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Preparation:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;We have got two tables in Excel file.&lt;/P&gt;&lt;P&gt;For convenience let’s call them ‘Table1’ and ‘Table2’:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Table1&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Table2&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;&lt;IMG __jive_id="77882" alt="t1.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/77882_t1.jpg" style="height: auto;" /&gt;&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;&lt;IMG __jive_id="77883" alt="t2.jpg" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/77883_t2.jpg" style="height: auto;" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 12pt; text-decoration: underline;"&gt;Remember&lt;/SPAN&gt; &lt;IMG __jive_id="77884" alt="ligtbulb.jpg" class="jive-image image-4" height="31" src="https://community.qlik.com/legacyfs/online/77884_ligtbulb.jpg" style="height: 31.05px; width: 27px;" width="27" /&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;To use the script below the Excel file must be saved in the same folder that your qvd file&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Otherwise you will need to make changes the this path - [&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;LookUp.xlsx]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Table2:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Category&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Country&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; [Lookup.xlsx]&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;embedded&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;table&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; Table2);&lt;BR /&gt; &lt;BR /&gt; Table1:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Category&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Lookup&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;('Country','Category',&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Category&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,'Table2') &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Country&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; [Lookup.xlsx]&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;embedded&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;table&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; Table1);&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;drop&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; Table2; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Remember&amp;nbsp; to... Look Up! &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;&lt;EM&gt;(This is where the name of this function has another meaning)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Table 2 &lt;STRONG&gt;must be above &lt;/STRONG&gt;Table1!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;or after Reload you will get script error.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;How does it work?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Formula:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="77999" alt="equal.jpg" class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/77999_equal.jpg" style="height: auto; display: block; margin-left: auto; margin-right: auto;" /&gt;&lt;/P&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 16.0pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="center" style="text-align: left;"&gt;&lt;STRONG&gt;&lt;EM&gt;Script:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P align="center" style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: fuchsia;"&gt;Table2:&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New';"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: maroon; background: aqua;"&gt;Category&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: aqua;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; background: lime;"&gt;Country&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; [Lookup.xls]&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;embedded&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;table&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; Table2);&lt;BR /&gt; &lt;BR /&gt; Table1:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New';"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: maroon; background: yellow;"&gt;Category&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: yellow;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;Lookup&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;(&lt;SPAN style="background: lime;"&gt;'Country'&lt;/SPAN&gt;,&lt;SPAN style="background: aqua;"&gt;'Category'&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; background: yellow;"&gt;Category&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: yellow;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: fuchsia;"&gt;'Table2'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: maroon;"&gt;Country&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; [Lookup.xlsx]&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;embedded&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;table&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; Table1);&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New';"&gt;&lt;STRONG&gt;drop&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; Table2; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;Remember:&lt;/SPAN&gt;&lt;IMG __jive_id="77884" alt="ligtbulb.jpg" class="jive-image image-4" height="31" src="https://community.qlik.com/legacyfs/online/77884_ligtbulb.jpg" style="height: 31.05px; width: 27px;" width="27" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;First two arguments and the last one &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;must be&lt;/STRONG&gt;&lt;/SPAN&gt; enclosed in apostrophes &lt;SPAN style="font-family: 'Courier New';"&gt;''&lt;/SPAN&gt; .&lt;/LI&gt;&lt;LI&gt;You &lt;SPAN style="text-decoration: underline;"&gt;need &lt;/SPAN&gt;to drop Table2 using: &lt;SPAN style="color: blue; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;drop&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;table &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New';"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;statement&lt;/SPAN&gt; &lt;/SPAN&gt;or all fields from Table1 will be loaded, bringing unexpected results.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The final tables you should see are like this:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="78065" alt="outcome.png" class="jive-image image-6" src="https://community.qlik.com/legacyfs/online/78065_outcome.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pros:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;You can return &lt;STRONG&gt;any&lt;/STRONG&gt; field from second table based on &lt;STRONG&gt;any &lt;/STRONG&gt;matched field from first table -&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;You can look at first field in the table to return third one and to look at third field to return the first one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Cons:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Little bit confusing with the syntax&lt;/LI&gt;&lt;LI&gt;Slower than Apply Map&lt;/LI&gt;&lt;LI&gt;No ‘False’ return – If there is no match a Null is returned.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; To overcome this drawback we can wrap the formula in IF function:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: blue;"&gt;isnull&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: blue;"&gt;Lookup&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black;"&gt;('Country','Category',&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: maroon;"&gt;Category&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black;"&gt;,'Table2')),'No&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; match',&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: blue;"&gt;Lookup&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black;"&gt;('Country','Category',&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: maroon;"&gt;Category&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black;"&gt;,'Table2')) &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: blue;"&gt;As &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: maroon;"&gt;Country &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Exercise :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Return field ‘Sales’ from Table2 by using ‘Category’ field from Table1.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Answer at the end of this article)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Appendix:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For many of you coming from Excel world and working with VLOOKUP this syntax is little difficult to understand at first.&lt;/P&gt;&lt;P&gt;Why we can not have:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Take value from &lt;STRONG&gt;this&lt;/STRONG&gt; table go to the &lt;STRONG&gt;another&lt;/STRONG&gt; table matched the field and return what we need?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;So the syntax would have been:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Lookup(Category,Table2,Category,Country)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Would this not be simpler?&lt;/P&gt;&lt;P&gt;This is open question so please state your case....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Answer to Exercise:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;Lookup&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;('Sales','Category',&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon;"&gt;Category&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;,'Table2') &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: maroon;"&gt;Sales&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;Still feeling hungry?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-8342"&gt;How To /Missing Manual(17 articles)&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Feb 2015 03:05:19 GMT</pubDate>
    <dc:creator>robert_mika</dc:creator>
    <dc:date>2015-02-13T03:05:19Z</dc:date>
    <item>
      <title>Never look down – The Lookup() Story</title>
      <link>https://community.qlik.com/t5/Member-Articles/Never-look-down-The-Lookup-Story/ta-p/1485770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P align="center" style="text-align: left;"&gt;&lt;EM&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.0pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;STRONG&gt;What it is used for?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;To return values from another table field based on matching field value from current table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Typically used when only one field records from another table are needed.&lt;/P&gt;&lt;P&gt;(You are dropping this (second) table later on.&lt;SPAN lang="EN-GB" style="font-size: 8.0pt;"&gt;(see below) &lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;How does it look like?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;&lt;IMG __jive_id="77881" alt="how does it look.png" class="jive-image image-1" src="/legacyfs/online/77881_how does it look.png" style="height: auto;" /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How is it design?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;EM&gt;dual&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; - this is not actual part of the function but&amp;nbsp; prefix used to indicate what kind of value this function returns –in this case it means that this function can return numbers and characters&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;EM&gt;Lookup &lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;- function name&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and four arguments:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;EM&gt;field_name&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; – is the name of a field in the &lt;STRONG&gt;other &lt;/STRONG&gt;table – in the table where we want the value &lt;STRONG&gt;to take &lt;/STRONG&gt;&lt;STRONG&gt;from&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;EM&gt;match_field_name-&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; is the name of a field in the &lt;STRONG&gt;other &lt;/STRONG&gt;table&lt;STRONG&gt; – &lt;/STRONG&gt;this is the matching value to the next argument&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;----&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN style="text-decoration: underline;"&gt;match_field_value&lt;/SPAN&gt; &lt;/EM&gt;- &lt;/STRONG&gt;is the name of field in the &lt;STRONG&gt;this &lt;/STRONG&gt;table-matching with previous argument&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;EM&gt;[, table_name]&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; - This is name of the &lt;STRONG&gt;other &lt;/STRONG&gt;table (this argument is optional if omitted current table is used)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Preparation:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;We have got two tables in Excel file.&lt;/P&gt;&lt;P&gt;For convenience let’s call them ‘Table1’ and ‘Table2’:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Table1&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Table2&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;&lt;IMG __jive_id="77882" alt="t1.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/77882_t1.jpg" style="height: auto;" /&gt;&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;&lt;IMG __jive_id="77883" alt="t2.jpg" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/77883_t2.jpg" style="height: auto;" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 12pt; text-decoration: underline;"&gt;Remember&lt;/SPAN&gt; &lt;IMG __jive_id="77884" alt="ligtbulb.jpg" class="jive-image image-4" height="31" src="https://community.qlik.com/legacyfs/online/77884_ligtbulb.jpg" style="height: 31.05px; width: 27px;" width="27" /&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;To use the script below the Excel file must be saved in the same folder that your qvd file&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Otherwise you will need to make changes the this path - [&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;LookUp.xlsx]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Table2:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Category&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Country&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; [Lookup.xlsx]&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;embedded&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;table&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; Table2);&lt;BR /&gt; &lt;BR /&gt; Table1:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Category&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Lookup&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;('Country','Category',&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Category&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,'Table2') &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Country&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; [Lookup.xlsx]&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;embedded&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;table&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; Table1);&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;drop&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; Table2; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Remember&amp;nbsp; to... Look Up! &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;&lt;EM&gt;(This is where the name of this function has another meaning)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Table 2 &lt;STRONG&gt;must be above &lt;/STRONG&gt;Table1!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;or after Reload you will get script error.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;How does it work?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Formula:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="77999" alt="equal.jpg" class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/77999_equal.jpg" style="height: auto; display: block; margin-left: auto; margin-right: auto;" /&gt;&lt;/P&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 16.0pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="center" style="text-align: left;"&gt;&lt;STRONG&gt;&lt;EM&gt;Script:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P align="center" style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: fuchsia;"&gt;Table2:&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New';"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: maroon; background: aqua;"&gt;Category&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: aqua;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; background: lime;"&gt;Country&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; [Lookup.xls]&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;embedded&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;table&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; Table2);&lt;BR /&gt; &lt;BR /&gt; Table1:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New';"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: maroon; background: yellow;"&gt;Category&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: yellow;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;Lookup&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;(&lt;SPAN style="background: lime;"&gt;'Country'&lt;/SPAN&gt;,&lt;SPAN style="background: aqua;"&gt;'Category'&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; background: yellow;"&gt;Category&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: yellow;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: fuchsia;"&gt;'Table2'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: maroon;"&gt;Country&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; [Lookup.xlsx]&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;embedded&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;table&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; Table1);&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New';"&gt;&lt;STRONG&gt;drop&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; Table2; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;Remember:&lt;/SPAN&gt;&lt;IMG __jive_id="77884" alt="ligtbulb.jpg" class="jive-image image-4" height="31" src="https://community.qlik.com/legacyfs/online/77884_ligtbulb.jpg" style="height: 31.05px; width: 27px;" width="27" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;First two arguments and the last one &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;must be&lt;/STRONG&gt;&lt;/SPAN&gt; enclosed in apostrophes &lt;SPAN style="font-family: 'Courier New';"&gt;''&lt;/SPAN&gt; .&lt;/LI&gt;&lt;LI&gt;You &lt;SPAN style="text-decoration: underline;"&gt;need &lt;/SPAN&gt;to drop Table2 using: &lt;SPAN style="color: blue; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;drop&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;table &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New';"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;statement&lt;/SPAN&gt; &lt;/SPAN&gt;or all fields from Table1 will be loaded, bringing unexpected results.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The final tables you should see are like this:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="78065" alt="outcome.png" class="jive-image image-6" src="https://community.qlik.com/legacyfs/online/78065_outcome.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pros:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;You can return &lt;STRONG&gt;any&lt;/STRONG&gt; field from second table based on &lt;STRONG&gt;any &lt;/STRONG&gt;matched field from first table -&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;You can look at first field in the table to return third one and to look at third field to return the first one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Cons:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Little bit confusing with the syntax&lt;/LI&gt;&lt;LI&gt;Slower than Apply Map&lt;/LI&gt;&lt;LI&gt;No ‘False’ return – If there is no match a Null is returned.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; To overcome this drawback we can wrap the formula in IF function:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: blue;"&gt;isnull&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: blue;"&gt;Lookup&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black;"&gt;('Country','Category',&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: maroon;"&gt;Category&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black;"&gt;,'Table2')),'No&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; match',&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: blue;"&gt;Lookup&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black;"&gt;('Country','Category',&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: maroon;"&gt;Category&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black;"&gt;,'Table2')) &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: blue;"&gt;As &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: maroon;"&gt;Country &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Exercise :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Return field ‘Sales’ from Table2 by using ‘Category’ field from Table1.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Answer at the end of this article)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Appendix:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For many of you coming from Excel world and working with VLOOKUP this syntax is little difficult to understand at first.&lt;/P&gt;&lt;P&gt;Why we can not have:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Take value from &lt;STRONG&gt;this&lt;/STRONG&gt; table go to the &lt;STRONG&gt;another&lt;/STRONG&gt; table matched the field and return what we need?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;So the syntax would have been:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Lookup(Category,Table2,Category,Country)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Would this not be simpler?&lt;/P&gt;&lt;P&gt;This is open question so please state your case....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Answer to Exercise:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;Lookup&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;('Sales','Category',&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon;"&gt;Category&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;,'Table2') &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: maroon;"&gt;Sales&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;Still feeling hungry?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-8342"&gt;How To /Missing Manual(17 articles)&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 03:05:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Never-look-down-The-Lookup-Story/ta-p/1485770</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-02-13T03:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Never look down – The Lookup() Story</title>
      <link>https://community.qlik.com/t5/Member-Articles/Never-look-down-The-Lookup-Story/tac-p/1485771#M1697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your contribution Robert. I suppose you can also use alt() instead of your large if-statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New;"&gt;&lt;SPAN style="color: #0000ff;"&gt; If&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 8pt;"&gt;isnull&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 8pt;"&gt;Lookup&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;('Country','Category',&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 8pt;"&gt;Category&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;,'Table2')),'No&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; match',&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 8pt;"&gt;Lookup&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;('Country','Category',&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 8pt;"&gt;Category&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;,'Table2')) &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 8pt;"&gt;As &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 8pt;"&gt;Country &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 8pt;"&gt;-&amp;gt; alt(&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 8pt;"&gt;Lookup&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;('Country','Category',&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 8pt;"&gt;Category&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;,'Table2'),'No match')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS Country &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 17:50:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Never-look-down-The-Lookup-Story/tac-p/1485771#M1697</guid>
      <dc:creator>simondachstr</dc:creator>
      <dc:date>2015-02-13T17:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Never look down – The Lookup() Story</title>
      <link>https://community.qlik.com/t5/Member-Articles/Never-look-down-The-Lookup-Story/tac-p/1485772#M1698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The &lt;STRONG&gt;alt&lt;/STRONG&gt; function returns the first of the parameters that has a valid &lt;SPAN style="text-decoration: underline;"&gt;number&lt;/SPAN&gt; representation...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 14:59:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Never-look-down-The-Lookup-Story/tac-p/1485772#M1698</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2015-02-16T14:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Never look down – The Lookup() Story</title>
      <link>https://community.qlik.com/t5/Member-Articles/Never-look-down-The-Lookup-Story/tac-p/1485773#M1699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're right it's not working. Weird - thought as Lookup is returning a dual field it should be fine, it works in the front end e.g.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 16:41:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Never-look-down-The-Lookup-Story/tac-p/1485773#M1699</guid>
      <dc:creator>simondachstr</dc:creator>
      <dc:date>2015-02-16T16:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Never look down – The Lookup() Story</title>
      <link>https://community.qlik.com/t5/Member-Articles/Never-look-down-The-Lookup-Story/tac-p/1485774#M1700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I usually use ApplyMap and even I can create several mapping tables from a big table if I need.&lt;/P&gt;&lt;P&gt;So, what is the main Pros in comparison with ApplyMap?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it faster then create a map table and then use ApplyMap?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 05:32:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Never-look-down-The-Lookup-Story/tac-p/1485774#M1700</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2015-04-10T05:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Never look down – The Lookup() Story</title>
      <link>https://community.qlik.com/t5/Member-Articles/Never-look-down-The-Lookup-Story/tac-p/1485775#M1701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mapping table in ApplyMap can have only two columns.&lt;/P&gt;&lt;P&gt;For lookup you can look at any column and return any column.&lt;/P&gt;&lt;P&gt;but Applymap is faster and the syntax is easier to "digest"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 10:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Never-look-down-The-Lookup-Story/tac-p/1485775#M1701</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-04-10T10:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Never look down – The Lookup() Story</title>
      <link>https://community.qlik.com/t5/Member-Articles/Never-look-down-The-Lookup-Story/tac-p/1485776#M1702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah. That's why I'm still thinking do I need it or not. In which cases Lookup is really better then ApplyMap..&lt;/P&gt;&lt;P&gt;What is your opinion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 04:14:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Never-look-down-The-Lookup-Story/tac-p/1485776#M1702</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2015-04-13T04:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Never look down – The Lookup() Story</title>
      <link>https://community.qlik.com/t5/Member-Articles/Never-look-down-The-Lookup-Story/tac-p/1485777#M1703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my experience the actual ApplyMap function usage is 100s times faster than the equivalent LOOKUP but the ApplyMap requires preparation in the form of a MAPPING LOAD. So its all relative to how long does the MAPPING LOAD take to create compared to how many times does the "lookup" logic get called. I always go with MAPPING LOAD / ApplyMap combo. But wouldn't it be great if QlikView would chose which method was best depending on the circumstances.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jun 2015 21:21:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Never-look-down-The-Lookup-Story/tac-p/1485777#M1703</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-21T21:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Never look down – The Lookup() Story</title>
      <link>https://community.qlik.com/t5/Member-Articles/Never-look-down-The-Lookup-Story/tac-p/1485778#M1704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was not aware Lookup function is available in Qlikview.&lt;/P&gt;&lt;P&gt;Very Nice explanation. Thanks Robert!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 09:55:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Never-look-down-The-Lookup-Story/tac-p/1485778#M1704</guid>
      <dc:creator />
      <dc:date>2015-06-22T09:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Never look down – The Lookup() Story</title>
      <link>https://community.qlik.com/t5/Member-Articles/Never-look-down-The-Lookup-Story/tac-p/1485779#M1705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for late replay.&lt;/P&gt;&lt;P&gt;If you got more that two columns you have to use Lookup.&lt;/P&gt;&lt;P&gt;Applymap will not work. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 10:02:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Never-look-down-The-Lookup-Story/tac-p/1485779#M1705</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-06-22T10:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Never look down – The Lookup() Story</title>
      <link>https://community.qlik.com/t5/Member-Articles/Never-look-down-The-Lookup-Story/tac-p/1485780#M1706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to look-up values from multiple columns using look-up function? i.e I need to know if the column name in the look-up table is dynamic and can be passed as variable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 09:45:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Never-look-down-The-Lookup-Story/tac-p/1485780#M1706</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-20T09:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Never look down – The Lookup() Story</title>
      <link>https://community.qlik.com/t5/Member-Articles/Never-look-down-The-Lookup-Story/tac-p/1485781#M1707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Be very careful using the LOOKUP function since it can be very slow. One alternative is the ApplyMap function. Each function has its own pros and cons but I've found the LOOKUP function to be very flexible but slow whereas ApplyMap a little more limited but very fast at the point of looking up the value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 18:59:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Never-look-down-The-Lookup-Story/tac-p/1485781#M1707</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-15T18:59:55Z</dc:date>
    </item>
  </channel>
</rss>

