<?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 How to pass variable to lookup function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-pass-variable-to-lookup-function/m-p/275740#M102880</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, &lt;/P&gt;&lt;P&gt;in the last days I'm working to parametrize lookup function.&amp;nbsp; &lt;/P&gt;&lt;P&gt;What I need to do is to pass to the function the value of a variable I defined in the document. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In depth, I have a variable GROUP whose expression is '=GRUPPO' :&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GROUP '=GRUPPO'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is to the pass the value of GROUP to a lookup function. &lt;/P&gt;&lt;P&gt;I tried with: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vLang = lookup('LANG','GRUPPO',$(GROUP),'Cono_dati'); &lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vLang = lookup('LANG','GRUPPO','$(GROUP)','Cono_dati'); &lt;/P&gt;&lt;P&gt;but in both cases, checking on the file log,&amp;nbsp; the lookup function is not evaluated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you please any suggestion? &lt;/P&gt;&lt;P&gt;Thanks in advance, &lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jun 2011 08:11:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-06-09T08:11:53Z</dc:date>
    <item>
      <title>How to pass variable to lookup function</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-variable-to-lookup-function/m-p/275740#M102880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, &lt;/P&gt;&lt;P&gt;in the last days I'm working to parametrize lookup function.&amp;nbsp; &lt;/P&gt;&lt;P&gt;What I need to do is to pass to the function the value of a variable I defined in the document. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In depth, I have a variable GROUP whose expression is '=GRUPPO' :&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GROUP '=GRUPPO'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is to the pass the value of GROUP to a lookup function. &lt;/P&gt;&lt;P&gt;I tried with: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vLang = lookup('LANG','GRUPPO',$(GROUP),'Cono_dati'); &lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vLang = lookup('LANG','GRUPPO','$(GROUP)','Cono_dati'); &lt;/P&gt;&lt;P&gt;but in both cases, checking on the file log,&amp;nbsp; the lookup function is not evaluated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you please any suggestion? &lt;/P&gt;&lt;P&gt;Thanks in advance, &lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 08:11:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-variable-to-lookup-function/m-p/275740#M102880</guid>
      <dc:creator />
      <dc:date>2011-06-09T08:11:53Z</dc:date>
    </item>
    <item>
      <title>How to pass variable to lookup function</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-variable-to-lookup-function/m-p/275741#M102881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;I´m using QV 10 SR2 64 BIT. I can´t find the function LookUp. It is explained in the help page, but it is not longer available, is it?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="FunktionList.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/5153_FunktionList.jpg" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 08:49:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-variable-to-lookup-function/m-p/275741#M102881</guid>
      <dc:creator>christian77</dc:creator>
      <dc:date>2011-06-09T08:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass variable to lookup function</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-variable-to-lookup-function/m-p/275742#M102882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cristian, &lt;/P&gt;&lt;P&gt;the function lookup is available only in the loadscript part of the qvw file. &lt;/P&gt;&lt;P&gt;This is not available instead in Modify Expression Dialog. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked this on my QlikView 9.0 version but I think this feature is independent from the version. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards, &lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 12:04:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-variable-to-lookup-function/m-p/275742#M102882</guid>
      <dc:creator />
      <dc:date>2011-06-09T12:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass variable to lookup function</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-variable-to-lookup-function/m-p/275743#M102883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Up!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2011 07:38:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-variable-to-lookup-function/m-p/275743#M102883</guid>
      <dc:creator />
      <dc:date>2011-06-10T07:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass variable to lookup function</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-variable-to-lookup-function/m-p/275744#M102884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At the end, I've not been able to solve this issue. &lt;/P&gt;&lt;P&gt;Actually I'm able to pass the variable value to the function, but when I do that the lookup function is not evaluated. &lt;/P&gt;&lt;P&gt;Infact reading the log, I see the following row: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;Where Column = &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Instead of: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;Where Column = '20'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;And '20' is supposed to be the evaluation of the following expression: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vLang = lookup('LANG','GRUPPO','$(GROUP)','Cono_dati');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other suggestion, please? &lt;BR /&gt;Thanks in advance, &lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 14:55:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-variable-to-lookup-function/m-p/275744#M102884</guid>
      <dc:creator />
      <dc:date>2011-06-30T14:55:08Z</dc:date>
    </item>
    <item>
      <title>How to pass variable to lookup function</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-variable-to-lookup-function/m-p/275745#M102885</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;I haven't worked with lookup so far, but&lt;/P&gt;&lt;P&gt;as I understand the lookup function, LANG and GRUPPO must be fields of table Cono_dati, correct?&lt;/P&gt;&lt;P&gt;Then, value of $(GROUP) is evaluated, looked up in field GRUPPO (where a value 'GRUPPO' must exist then) and corresponding value of field LANG is returned, correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you checked, that table and fields are present on time of evaluation of the lookup function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have just a few lookup values, you might use "pick" to select an expression / value depending on input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 15:09:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-variable-to-lookup-function/m-p/275745#M102885</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-06-30T15:09:58Z</dc:date>
    </item>
  </channel>
</rss>

