<?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/461687#M699671</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;Its difficult to say without your script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally load all the data, like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Year(DateField) as Year, FieldName1,FieldName2;&lt;/P&gt;&lt;P&gt;Select * from tableName where Year(DateField) &amp;gt;= 2010 and Year(DateField) &amp;lt;= 2012;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Dec 2012 20:39:06 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2012-12-21T20:39:06Z</dc:date>
    <item>
      <title>Where Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/461678#M699662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to use the Where Clause to only select the last two years but keep getting error message. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 18:56:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/461678#M699662</guid>
      <dc:creator />
      <dc:date>2012-12-21T18:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/461679#M699663</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;Qlikview is case sensitive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO, Please check year field..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YEAR or Year or year? And also is Year field available in db?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 18:59:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/461679#M699663</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-12-21T18:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/461680#M699664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry the dummy question, but are you sure the year field in the where clause is exactly writen as existing in the db you are loading?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 19:01:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/461680#M699664</guid>
      <dc:creator />
      <dc:date>2012-12-21T19:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/461681#M699665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the field is "&lt;SPAN style="font-size: 8pt;"&gt;DATESUBMITTOOPEN" and the Format is MM-DD-YYYY HH:MM:SS AM but i want to select just the last two years. is this possible? &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 19:06:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/461681#M699665</guid>
      <dc:creator />
      <dc:date>2012-12-21T19:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/461682#M699666</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select * From tableName where Year(&lt;SPAN style="font-size: 8pt;"&gt;DATESUBMITTOOPEN) &amp;gt;= 2010 and Year(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;DATESUBMITTOOPEN) &amp;lt;= 2012;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 19:09:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/461682#M699666</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-12-21T19:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/461683#M699667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure it's possible, but you need to transform your data first in order to create a year reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select *&lt;/P&gt;&lt;P&gt;From YourTable&lt;/P&gt;&lt;P&gt;Where Year(DateSubMitToOpen)&amp;gt;=xxxx and Year(DateSubMitToOpen)&amp;lt;yyyy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The xxxx and yyyy are the year values you are using as the min and max timestamp values you want to load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need a more automated load script then some more steps are required&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, 21 Dec 2012 19:14:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/461683#M699667</guid>
      <dc:creator />
      <dc:date>2012-12-21T19:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/461684#M699668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG __jive_id="27543" class="jive-image-thumbnail jive-image" onclick="" alt="Error1.JPG" src="https://community.qlik.com/legacyfs/online/27543_Error1.JPG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 19:21:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/461684#M699668</guid>
      <dc:creator />
      <dc:date>2012-12-21T19:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/461685#M699669</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; Can you say, did u use any YEAR field or set in any variable in your script? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no error in the script, it work fine. Can you provide a script which you are using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 19:37:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/461685#M699669</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-12-21T19:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/461686#M699670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Year(DateSubMitToOpen) as DateSubMitToOpen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 20:13:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/461686#M699670</guid>
      <dc:creator />
      <dc:date>2012-12-21T20:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/461687#M699671</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;Its difficult to say without your script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally load all the data, like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Year(DateField) as Year, FieldName1,FieldName2;&lt;/P&gt;&lt;P&gt;Select * from tableName where Year(DateField) &amp;gt;= 2010 and Year(DateField) &amp;lt;= 2012;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 20:39:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/461687#M699671</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-12-21T20:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/461688#M699672</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;Can you copy and share the part of the scrip where you load and filter the data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you check if you ended the instruction with a semi-colon?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally, the format of a Load / Select script is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Start of the select instruction&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Select *&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;From YourTable&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Where Year(DateSubMitToOpen)&amp;gt;=xxxx and Year(DateSubMitToOpen)&amp;lt;yyyy&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;;&lt;/P&gt;&lt;P&gt;// End of Select instruction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another source of the error warning maybe the fact that your field "&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;DateSubMitToOpen&lt;/SPAN&gt;" as a timestamp may not be a Date field but a text field instead.&lt;/P&gt;&lt;P&gt;If that's the fact you need to transform this text field in a Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you check that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 21:52:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/461688#M699672</guid>
      <dc:creator />
      <dc:date>2012-12-21T21:52:02Z</dc:date>
    </item>
  </channel>
</rss>

