<?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: Vlookup expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Vlookup-expression/m-p/636067#M1091128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I have managed to resolve the issue using the 'Only' function.&amp;nbsp; I will test it out on the main data.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Key&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;code&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Key1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;value2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jun 2014 13:43:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-03T13:43:45Z</dc:date>
    <item>
      <title>Vlookup expression</title>
      <link>https://community.qlik.com/t5/QlikView/Vlookup-expression/m-p/636064#M1091125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a solution that will mimic a Vlookup in excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a unique key within a table as an expression (has several caluculations looking at different tables).&amp;nbsp; I have an excel table loaded into Qlikview that has the key and a 'value' as a seperate column.&amp;nbsp; I am essentially trying to show the value from the excel table rather than my calculated key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried a simple 'if' statement&lt;/P&gt;&lt;P&gt;if (&amp;nbsp;&amp;nbsp; expression = 'Excel Key', 'Excel Value' , Null() )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However no value is being returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure I have resloved this before in the past however I cannot remember how I managed it (this needs to be done in a table and not the load script).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be very grateful for any advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 16:20:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vlookup-expression/m-p/636064#M1091125</guid>
      <dc:creator />
      <dc:date>2014-06-02T16:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Vlookup expression</title>
      <link>https://community.qlik.com/t5/QlikView/Vlookup-expression/m-p/636065#M1091126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edward,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a sample copy of the QVW file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 16:59:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vlookup-expression/m-p/636065#M1091126</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-02T16:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Vlookup expression</title>
      <link>https://community.qlik.com/t5/QlikView/Vlookup-expression/m-p/636066#M1091127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sean,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your response.&amp;nbsp; I have put together a quick example.&amp;nbsp; I need to be able to do this via an expression in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 12:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vlookup-expression/m-p/636066#M1091127</guid>
      <dc:creator />
      <dc:date>2014-06-03T12:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Vlookup expression</title>
      <link>https://community.qlik.com/t5/QlikView/Vlookup-expression/m-p/636067#M1091128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I have managed to resolve the issue using the 'Only' function.&amp;nbsp; I will test it out on the main data.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Key&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;code&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Key1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;value2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 13:43:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vlookup-expression/m-p/636067#M1091128</guid>
      <dc:creator />
      <dc:date>2014-06-03T13:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Vlookup expression</title>
      <link>https://community.qlik.com/t5/QlikView/Vlookup-expression/m-p/636068#M1091129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The apply map script function works in a very similar way to a vLookup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 13:45:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vlookup-expression/m-p/636068#M1091129</guid>
      <dc:creator>richard_pearce6</dc:creator>
      <dc:date>2014-06-03T13:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Vlookup expression</title>
      <link>https://community.qlik.com/t5/QlikView/Vlookup-expression/m-p/636069#M1091130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apply Map in Qlikview is similar to Vlookup in Excel....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 13:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vlookup-expression/m-p/636069#M1091130</guid>
      <dc:creator>satishkurra</dc:creator>
      <dc:date>2014-06-03T13:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Vlookup expression</title>
      <link>https://community.qlik.com/t5/QlikView/Vlookup-expression/m-p/636070#M1091131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the replys.&amp;nbsp; Unfortunately I can't really use the apply map in the load script due to how complex the main application is (would mean I would probably have to rebuild it)&amp;nbsp; I am currently generating the key in an expression which in principle should work using the 'Only' function.........At least I got it to work on the example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the main application the key is built using quite a long 'if' statement.&amp;nbsp; Unfortunately despite knowing (and proving) the if statement creates the key, as soon as I inbed it into the 'Only' statement I get a script error.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Back to the drawing board..... any other suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 14:10:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vlookup-expression/m-p/636070#M1091131</guid>
      <dc:creator />
      <dc:date>2014-06-03T14:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Vlookup expression</title>
      <link>https://community.qlik.com/t5/QlikView/Vlookup-expression/m-p/636071#M1091132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you asking me Satish? I don't understand your reply??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 14:20:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vlookup-expression/m-p/636071#M1091132</guid>
      <dc:creator>richard_pearce6</dc:creator>
      <dc:date>2014-06-03T14:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Vlookup expression</title>
      <link>https://community.qlik.com/t5/QlikView/Vlookup-expression/m-p/636072#M1091133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found another way to do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Match&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Key&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;code&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; , &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Key1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;gt;0, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;value2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 0)) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Sadley I am having the same issue with this expression as well.&amp;nbsp; As soon as I sink my if statement in to create a key, I get an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 16:24:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vlookup-expression/m-p/636072#M1091133</guid>
      <dc:creator />
      <dc:date>2014-06-03T16:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Vlookup expression</title>
      <link>https://community.qlik.com/t5/QlikView/Vlookup-expression/m-p/636073#M1091134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does your larger expression look like? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sounds like you may have already tried something like =SUM(IF(Key &amp;amp; code = Key1,value2))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 16:45:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vlookup-expression/m-p/636073#M1091134</guid>
      <dc:creator />
      <dc:date>2014-06-03T16:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Vlookup expression</title>
      <link>https://community.qlik.com/t5/QlikView/Vlookup-expression/m-p/636074#M1091135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I have found the issue.&amp;nbsp; The main key is generated by using 'Key &amp;amp; Code', the 'Code' part is made up from a nested 'if' statement that includes 'Sum'.&amp;nbsp; Although all of this works in isolation to generate the correct key, as soon as I add it as part of the overall expression it generates an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached an updated example to demonstrate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you (or anyone else) know of a way I can preserve the sum if statement whilst getting the lookup to work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 10:35:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vlookup-expression/m-p/636074#M1091135</guid>
      <dc:creator />
      <dc:date>2014-06-05T10:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Vlookup expression</title>
      <link>https://community.qlik.com/t5/QlikView/Vlookup-expression/m-p/636075#M1091136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Edward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikView &lt;STRONG&gt;has&lt;/STRONG&gt; a Lookup() function. It should do just what you need. Take a look: &lt;A href="https://community.qlik.com/docs/DOC-3903"&gt;Lookup function&lt;/A&gt;, &lt;A href="https://community.qlik.com/docs/DOC-3412"&gt;Joins and Lookups&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't use Lookup(), you'll need to use the Aggr() function. It allows you to make nested aggregations. It's needed becaouse the long if statement that generates the key uses Sum(). To help you with it, we'll need a more detailed sample qvd, one that is more close to your actual app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 11:36:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vlookup-expression/m-p/636075#M1091136</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-05T11:36:10Z</dc:date>
    </item>
  </channel>
</rss>

