<?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 Equivalent of sql's IN statement for a Resident load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Equivalent-of-sql-s-IN-statement-for-a-Resident-load/m-p/194214#M713193</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've found the problem.. I think the match was having issues when one of the DX values was null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I AND'ed each MATCH with an ISNULL and it worked fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers for your help guys&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Nov 2010 00:09:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-11-22T00:09:34Z</dc:date>
    <item>
      <title>Equivalent of sql's IN statement for a Resident load</title>
      <link>https://community.qlik.com/t5/QlikView/Equivalent-of-sql-s-IN-statement-for-a-Resident-load/m-p/194211#M713190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a sql table which has 50 columns labelled DX1, DX2.. etc as well as other columns.&lt;/P&gt;&lt;P&gt;I'm loading this table in, and now want to create a new table, which is a filtered version of the SQL Load.&lt;/P&gt;&lt;P&gt;The filter is that one of the 50 DX columns must be one of 6 possible values ('J45','J450','J451','J458','J459','J46')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SQL i would do this using the IN statement as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;WHERE&lt;/B&gt; (DX1 IN ('J45','J450','J451','J458','J459','J46')&lt;/P&gt;&lt;P&gt;&lt;B&gt;OR&lt;/B&gt; DX2 IN ('J45','J450','J451','J458','J459','J46')&lt;/P&gt;&lt;P&gt;&lt;B&gt;OR&lt;/B&gt; DX3 IN ('J45','J450','J451','J458','J459','J46')&lt;/P&gt;&lt;P&gt;&lt;B&gt;OR&lt;/B&gt; DX4 IN ('J45','J450','J451','J458','J459','J46')&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;This doesn't work for a Resident load though. I've also tried using MATCH, but this didn't seem to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 05:54:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Equivalent-of-sql-s-IN-statement-for-a-Resident-load/m-p/194211#M713190</guid>
      <dc:creator />
      <dc:date>2010-11-19T05:54:52Z</dc:date>
    </item>
    <item>
      <title>Equivalent of sql's IN statement for a Resident load</title>
      <link>https://community.qlik.com/t5/QlikView/Equivalent-of-sql-s-IN-statement-for-a-Resident-load/m-p/194212#M713191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think U may create new table (Table1 e.g.) , fill her with your values manually, and then load * from ..... where exists(Table1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 07:49:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Equivalent-of-sql-s-IN-statement-for-a-Resident-load/m-p/194212#M713191</guid>
      <dc:creator />
      <dc:date>2010-11-19T07:49:30Z</dc:date>
    </item>
    <item>
      <title>Equivalent of sql's IN statement for a Resident load</title>
      <link>https://community.qlik.com/t5/QlikView/Equivalent-of-sql-s-IN-statement-for-a-Resident-load/m-p/194213#M713192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Matt,&lt;/P&gt;&lt;P&gt;The following code will work in any LOAD statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Table:LOAD *WHERE MATCH(DX1,'J45','J450','J451','J458','J459','J46')OR MATCH(DX2,'J45','J450','J451','J458','J459','J46')OR MATCH(DX3,'J45','J450','J451','J458','J459','J46')OR MATCH(DX4,'J45','J450','J451','J458','J459','J46');SQL SELECT *FROM Database.Table;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;When there are a lot of values you want to compare with and they are stored in any datasource, a mapping table/applymap will work in the where clause as well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LoadTableMap: // This map is only used while the script is being excecutedMAPPING LOAD DX1 1 AS LOADWHERE LEFT(DX1, 3) = 'J45';SQL SELECT DX1FROM Database.Table; Table:LOAD *WHERE ApplyMap('LoadTableMap', DX1, '$') &amp;lt;&amp;gt; '$'; // It will load all existing values in previously loaded DX1SQL SELECT *FROM Database.Table;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 08:56:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Equivalent-of-sql-s-IN-statement-for-a-Resident-load/m-p/194213#M713192</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-11-19T08:56:49Z</dc:date>
    </item>
    <item>
      <title>Equivalent of sql's IN statement for a Resident load</title>
      <link>https://community.qlik.com/t5/QlikView/Equivalent-of-sql-s-IN-statement-for-a-Resident-load/m-p/194214#M713193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've found the problem.. I think the match was having issues when one of the DX values was null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I AND'ed each MATCH with an ISNULL and it worked fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers for your help guys&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Nov 2010 00:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Equivalent-of-sql-s-IN-statement-for-a-Resident-load/m-p/194214#M713193</guid>
      <dc:creator />
      <dc:date>2010-11-22T00:09:34Z</dc:date>
    </item>
  </channel>
</rss>

