<?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 field value using variable (not inter-record) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Lookup-field-value-using-variable-not-inter-record/m-p/483544#M688993</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;If your "exclude" table is called "ExcludeFiles" and its field/column that has the excluded values is called FileName then this should do the trick:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 8pt;"&gt;FOR Each File in FileList()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF len(LookUp('FileName','FileName',File,'ExcludeFiles')) =0 THEN &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 8pt;"&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; '$(File)' as File&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AUTOGENERATE 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 8pt;"&gt;NEXT File&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 8pt;"&gt;-Kmn&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Nov 2013 20:58:39 GMT</pubDate>
    <dc:creator>kmn</dc:creator>
    <dc:date>2013-11-05T20:58:39Z</dc:date>
    <item>
      <title>Lookup field value using variable (not inter-record)</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-field-value-using-variable-not-inter-record/m-p/483543#M688992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd appreciate ideas on a solution for how to perform a lookup of a field value in a Table, but not for an inter-record lookup (where you could use Lookup() or Exists(), but rather when the value you want to lookup is in a script variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to load files using FOR Each File in filelist(...)&amp;nbsp; and the number of files is quite large (many 100's).&amp;nbsp; I have a table that contains files I want to exclude (table is called 'ExcludeFiles' and has a column called 'FileName').&amp;nbsp; So I would like to do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR Each File in filelist('....')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; IF IsNull(Lookup( 'ExcludeFile', 'ExcludeFile', '$(File)', 'ExcludeFiles')) Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ... process the file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; END IF&lt;/P&gt;&lt;P&gt;NEXT File&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, Lookup() is not working here.&amp;nbsp; Nor could I get Exists to work.&amp;nbsp; I gather because both are intended for inter-record lookups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how I can look for a match in a resident table when the matchvalue is in a variable (such as $(File) in this case)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 20:28:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-field-value-using-variable-not-inter-record/m-p/483543#M688992</guid>
      <dc:creator />
      <dc:date>2013-11-05T20:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup field value using variable (not inter-record)</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-field-value-using-variable-not-inter-record/m-p/483544#M688993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;If your "exclude" table is called "ExcludeFiles" and its field/column that has the excluded values is called FileName then this should do the trick:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 8pt;"&gt;FOR Each File in FileList()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF len(LookUp('FileName','FileName',File,'ExcludeFiles')) =0 THEN &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 8pt;"&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; '$(File)' as File&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AUTOGENERATE 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 8pt;"&gt;NEXT File&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 8pt;"&gt;-Kmn&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 20:58:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-field-value-using-variable-not-inter-record/m-p/483544#M688993</guid>
      <dc:creator>kmn</dc:creator>
      <dc:date>2013-11-05T20:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup field value using variable (not inter-record)</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-field-value-using-variable-not-inter-record/m-p/483545#M688994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;KM... Thank you for the prompt reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made a careless error, and you pointed me right to it... thanks so much &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 21:31:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-field-value-using-variable-not-inter-record/m-p/483545#M688994</guid>
      <dc:creator />
      <dc:date>2013-11-05T21:31:32Z</dc:date>
    </item>
  </channel>
</rss>

