<?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: where clause in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/where-clause/m-p/434593#M162014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&amp;nbsp; What if i wanted to only pick up years, say, 2006 &amp;amp; 2012 but not the ones in between?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Oct 2012 14:34:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-19T14:34:56Z</dc:date>
    <item>
      <title>where clause</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause/m-p/434591#M162012</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'm trying to run a query with a where clause saying where "YEAR" = '2011' and '2012'; but i keep getting an error message.&amp;nbsp; What is the correct way of doing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 14:27:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause/m-p/434591#M162012</guid>
      <dc:creator />
      <dc:date>2012-10-19T14:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: where clause</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause/m-p/434592#M162013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;where YEAR = '2011' AND YEAR = '2012'&lt;/P&gt;&lt;P&gt;YOU CAN DO &lt;/P&gt;&lt;P&gt;WHERE YEAR&amp;gt; '2011' TOO..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 14:32:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause/m-p/434592#M162013</guid>
      <dc:creator>fdelacal</dc:creator>
      <dc:date>2012-10-19T14:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: where clause</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause/m-p/434593#M162014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&amp;nbsp; What if i wanted to only pick up years, say, 2006 &amp;amp; 2012 but not the ones in between?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 14:34:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause/m-p/434593#M162014</guid>
      <dc:creator />
      <dc:date>2012-10-19T14:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: where clause</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause/m-p/434594#M162015</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;where YEAR = '2006' AND YEAR = '2012'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use match(Year,'2006','2012') also&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>Fri, 19 Oct 2012 14:37:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause/m-p/434594#M162015</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-10-19T14:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: where clause</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause/m-p/434595#M162016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;where YEAR = '2006' AND YEAR = '2012' &lt;BR /&gt;only load thesse yaer.&lt;/P&gt;&lt;P&gt;where YEAR &amp;gt; '2006' AND YEAR &amp;lt; '2012'&lt;/P&gt;&lt;P&gt;will be 2007,, 2008, 2009, 2010, 2011.&lt;/P&gt;&lt;P&gt;Hope it help..&lt;/P&gt;&lt;P&gt;you can add = too..&lt;/P&gt;&lt;P&gt;=&amp;lt;&lt;/P&gt;&lt;P&gt;=&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 14:39:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause/m-p/434595#M162016</guid>
      <dc:creator>fdelacal</dc:creator>
      <dc:date>2012-10-19T14:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: where clause</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause/m-p/434596#M162017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;where YEAR = '2006' OR YEAR = '2012'&lt;/P&gt;&lt;P&gt;So you get both.&lt;/P&gt;&lt;P&gt;The Value in Field YEAR" can not be '2006" AND '2012' in one Row.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 14:59:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause/m-p/434596#M162017</guid>
      <dc:creator>kruppas78</dc:creator>
      <dc:date>2012-10-19T14:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: where clause</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause/m-p/434597#M162018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt; Thanks but I'm still struggling to make this work.&amp;nbsp; I have paste my script below.&amp;nbsp; I used year in my original posting but its actually a filed called SSS_BATCH_ID i need.&amp;nbsp; Both of the below return an error message&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;where "SSS_BATCH_ID" = '726' OR "SSS_BATCH_ID" = '829';&lt;BR /&gt;&lt;BR /&gt; where "SSS_BATCH_ID" = '726' AND "SSS_BATCH_ID" = '829'; &lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 15:07:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause/m-p/434597#M162018</guid>
      <dc:creator />
      <dc:date>2012-10-19T15:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: where clause</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause/m-p/434598#M162019</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; Did you try match function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where match(SSS_BATCH_ID,726,829)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 15:10:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause/m-p/434598#M162019</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-10-19T15:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: where clause</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause/m-p/434599#M162020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;where SSS_BATCH_ID = '726' OR SSS_BATCH_ID = '829';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The quotes say QlikView that it is not a field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 15:11:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause/m-p/434599#M162020</guid>
      <dc:creator>kruppas78</dc:creator>
      <dc:date>2012-10-19T15:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: where clause</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause/m-p/434600#M162021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes i tried the match function and that didn't work either&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 15:17:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause/m-p/434600#M162021</guid>
      <dc:creator />
      <dc:date>2012-10-19T15:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: where clause</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause/m-p/434601#M162022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but the quote marks work when i only ask to pick up say '726' or '829' on their own but not together&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 15:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause/m-p/434601#M162022</guid>
      <dc:creator />
      <dc:date>2012-10-19T15:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: where clause</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause/m-p/434602#M162023</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;Please check the attached file..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 15:22:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause/m-p/434602#M162023</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-10-19T15:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: where clause</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause/m-p/434603#M162024</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;You may try creating a small temporary inline table with all required years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEMP_YEAR:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Year&lt;/P&gt;&lt;P&gt;2014&lt;/P&gt;&lt;P&gt;2015&lt;/P&gt;&lt;P&gt;2016&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FACT:&lt;/P&gt;&lt;P&gt;LOAD &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; ID,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fact_Date&lt;/P&gt;&lt;P&gt;FROM $(vQVDSourcePath)Facts.qvd (qvd);&lt;/P&gt;&lt;P&gt;Where Exists (Year,Year(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Fact_Date&lt;/SPAN&gt;));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE TEMP_YEAR;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This logic filters out all the unwanted years except the inline table's years.&lt;/P&gt;&lt;P&gt;and later dropping the temp table leaves with no extra table in the model.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 18:40:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause/m-p/434603#M162024</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2015-04-22T18:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: where clause</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause/m-p/434604#M162025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Might I suggest you try the File Wizard. When you come to the "File Wizard: Options" step you can click the "Where..." button and then make your selections. When you finish you can see how the script was written by the wizard. This will most likely show what went wrong when you tried it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most of the answers above are correct:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; "SSS_BATCH_ID" = '726' OR "SSS_BATCH_ID" = '829';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Match("SSS_BATCH_ID",'726','829')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both should work so you may find the error is actually something else which the wizard should make apparent to you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 08:14:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause/m-p/434604#M162025</guid>
      <dc:creator>lawrenceiow</dc:creator>
      <dc:date>2018-08-22T08:14:48Z</dc:date>
    </item>
  </channel>
</rss>

