<?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 Where clause in LOAD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Where-clause-in-LOAD/m-p/212638#M66564</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;your are missing the FROM or RESIDENT part in your Statement.&lt;/P&gt;&lt;P&gt;LOAD sales&lt;/P&gt;&lt;P&gt;FROM ... / RESIDENT ...&lt;/P&gt;&lt;P&gt;WHERE YEAR([Sales]) = 2008&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Apr 2010 14:46:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-04-13T14:46:55Z</dc:date>
    <item>
      <title>Where clause in LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-LOAD/m-p/212635#M66561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IS it possible(I cant make it work) to put in a WHERE clause in the load sequence - somthing like this:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;left([sales],4) as lastyear&lt;BR /&gt;WHERE [sales] = 2008.&lt;/P&gt;&lt;P&gt;the sales list is a column with dates in this format dd-mm-yyyy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 14:16:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-LOAD/m-p/212635#M66561</guid>
      <dc:creator />
      <dc:date>2010-04-13T14:16:09Z</dc:date>
    </item>
    <item>
      <title>Where clause in LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-LOAD/m-p/212636#M66562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess you want something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;WHERE YEAR([sales]) = 2008&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Justinas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 14:22:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-LOAD/m-p/212636#M66562</guid>
      <dc:creator>justinasp</dc:creator>
      <dc:date>2010-04-13T14:22:11Z</dc:date>
    </item>
    <item>
      <title>Where clause in LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-LOAD/m-p/212637#M66563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Justinas&lt;/P&gt;&lt;P&gt;I get the message "garbage after statement"&lt;/P&gt;&lt;P&gt;I wrote the load like this&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;sales where YEAR([sales]) = 2008,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 14:28:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-LOAD/m-p/212637#M66563</guid>
      <dc:creator />
      <dc:date>2010-04-13T14:28:56Z</dc:date>
    </item>
    <item>
      <title>Where clause in LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-LOAD/m-p/212638#M66564</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;your are missing the FROM or RESIDENT part in your Statement.&lt;/P&gt;&lt;P&gt;LOAD sales&lt;/P&gt;&lt;P&gt;FROM ... / RESIDENT ...&lt;/P&gt;&lt;P&gt;WHERE YEAR([Sales]) = 2008&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 14:46:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-LOAD/m-p/212638#M66564</guid>
      <dc:creator />
      <dc:date>2010-04-13T14:46:55Z</dc:date>
    </item>
    <item>
      <title>Where clause in LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-LOAD/m-p/212639#M66565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Polschou,&lt;/P&gt;&lt;P&gt;Are your system variables on the main tabblad in the same format, for example:&lt;/P&gt;&lt;P&gt;&lt;B&gt;SET DateFormat&lt;/B&gt;='DD-MM-YYYY';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tjeerd&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 14:59:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-LOAD/m-p/212639#M66565</guid>
      <dc:creator>tabletuner</dc:creator>
      <dc:date>2010-04-13T14:59:27Z</dc:date>
    </item>
    <item>
      <title>Where clause in LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-LOAD/m-p/212640#M66566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm reading the question a little differently. To me, it looks like you want to do something like this?&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;LOAD&lt;BR /&gt; some fields&lt;BR /&gt;,left([sales],4) as lastyear where [sales] = 2008&lt;BR /&gt;,some other fields&lt;BR /&gt;from your source&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;If so, then you do it with an IF statement instead of a WHERE statement:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;LOAD&lt;BR /&gt; some fields&lt;BR /&gt;,if([sales]=2008,left([sales],4)) as lastyear&lt;BR /&gt;,some other fields&lt;BR /&gt;from your source&lt;BR /&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 00:10:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-LOAD/m-p/212640#M66566</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-04-14T00:10:55Z</dc:date>
    </item>
    <item>
      <title>Where clause in LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-LOAD/m-p/212641#M66567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes they are the same format&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 08:09:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-LOAD/m-p/212641#M66567</guid>
      <dc:creator />
      <dc:date>2010-04-14T08:09:13Z</dc:date>
    </item>
    <item>
      <title>Where clause in LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-LOAD/m-p/212642#M66568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My script starts with setting the variables month dates and so on&lt;BR /&gt;After this I make an ODBC connection to a access database.&lt;/P&gt;&lt;P&gt;[Timefaktor]:&lt;BR /&gt;ODBC CONNECT TO [MS Access-database; path to database];&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;BR /&gt;FROM my database.mdb;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;[sales]&lt;BR /&gt;left ([sales],4) as year&lt;BR /&gt;RESIDENT [Timefaktor];&lt;/P&gt;&lt;P&gt;Here is where i want to make a load with af WHERE clause&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;[sales]&lt;BR /&gt;left ([sales],4) as lastyear where [sales] = 2008 (but it failes with a syntax error)&lt;BR /&gt;RESIDENT [Timefaktor];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 08:18:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-LOAD/m-p/212642#M66568</guid>
      <dc:creator />
      <dc:date>2010-04-14T08:18:02Z</dc:date>
    </item>
    <item>
      <title>Where clause in LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-LOAD/m-p/212643#M66569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm still not very clear what you want to achieve. If you need to load only lines, where date contains year 2008, then you should use something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;[TimeFactor]:&lt;BR /&gt;LOAD makedate(v1,v2,v3) as date, vField INLINE&lt;BR /&gt;[&lt;BR /&gt;v1, v2, v3, vField&lt;BR /&gt;2008,1,2, AAA&lt;BR /&gt;2009,2,5, BBB&lt;BR /&gt;2008,3,18, CCC&lt;BR /&gt;];&lt;BR /&gt;NOCONCATENATE&lt;BR /&gt;[AnotherTable]:&lt;BR /&gt;LOAD date,&lt;BR /&gt; vField&lt;BR /&gt;RESIDENT [TimeFactor]&lt;BR /&gt;WHERE YEAR(date)=2008;&lt;BR /&gt;DROP TABLE [TimeFactor];&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Other case clearify your task. Good luck,&lt;/P&gt;&lt;P&gt;Justinas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 11:40:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-LOAD/m-p/212643#M66569</guid>
      <dc:creator>justinasp</dc:creator>
      <dc:date>2010-04-14T11:40:08Z</dc:date>
    </item>
    <item>
      <title>Where clause in LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-LOAD/m-p/212644#M66570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Following John Witherspoon's aproach, which seems good for me, I'd suggest you to try something like&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;ODBC CONNECT TO ...[TimeFaktor]:LOAD [sales] ,left([sales], 4) as lastyearWHERE [sales] = '2008';SQL SELECT *FROM yourdatabase.mdb;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;I don't know how this will impact on performance, if any. It may be clearer for you to understand. &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 12:37:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-LOAD/m-p/212644#M66570</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-04-14T12:37:49Z</dc:date>
    </item>
    <item>
      <title>Where clause in LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-LOAD/m-p/212645#M66571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel&lt;/P&gt;&lt;P&gt;It wont load properly.&lt;BR /&gt;What I´m trying to do is(I have made another post about it but I dont get enything I can use) is to show an increase in sold items in year 2008 and 2009.&lt;/P&gt;&lt;P&gt;I got one list with all the sales dates representing 1 sold item per date.&lt;BR /&gt;Showing the frequency in my list give me the total of dates in 2008 and 2009.&lt;/P&gt;&lt;P&gt;2008, 1000 dates and 2009 2000 dates so its an increase of dates of 1000 or 100% increase, but how do I make the script&lt;BR /&gt;do thsi for me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 13:27:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-LOAD/m-p/212645#M66571</guid>
      <dc:creator />
      <dc:date>2010-04-14T13:27:32Z</dc:date>
    </item>
  </channel>
</rss>

