<?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 Conditions in the script and filters in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditions-in-the-script-and-filters/m-p/254417#M1194259</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It`s really strange. In the mean time, you could load all the data and then keep only what you need. &lt;/P&gt;&lt;P&gt;It would be something like this: &lt;/P&gt;&lt;P&gt;tempSales:&lt;/P&gt;&lt;P&gt;Select * from SALES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;noconcatenate&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;Load * resident tempSales&lt;/P&gt;&lt;P&gt;Where Year(Sales_Date)&amp;gt;2009;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table tempSales;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QV 10 will probably not recognize the `noconcatenate` but it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 May 2011 14:23:46 GMT</pubDate>
    <dc:creator>erichshiino</dc:creator>
    <dc:date>2011-05-31T14:23:46Z</dc:date>
    <item>
      <title>Conditions in the script and filters</title>
      <link>https://community.qlik.com/t5/QlikView/Conditions-in-the-script-and-filters/m-p/254412#M1194251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for another newcomer question, but I could not find this when I searched.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a lot of old data that is no longer relevant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to only load or show records with a date in 2010 or 2011.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question no1: &lt;/P&gt;&lt;P&gt;Can I do this when I load the data? Can I do it in the SELECT statement and what would be the correct syntax (SQL?)? &lt;/P&gt;&lt;P&gt;(kind of Select * from SALES where SALES_DATE &amp;gt; 2009-12-31, but this does syntax does not seem to work)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Question no 2:&lt;/P&gt;&lt;P&gt;How can I filter in a Listbox so that it only shows some values? For example, if I want a SALES_DATE listbox to only show the dates for 2010 and 2011, so that people can not pick something older that this? Is it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are probably really basic questions, and it bugs me that I do not find an answer. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 12:58:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditions-in-the-script-and-filters/m-p/254412#M1194251</guid>
      <dc:creator />
      <dc:date>2011-05-31T12:58:50Z</dc:date>
    </item>
    <item>
      <title>Conditions in the script and filters</title>
      <link>https://community.qlik.com/t5/QlikView/Conditions-in-the-script-and-filters/m-p/254413#M1194252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the first question, SQL Syntax could be like this: &lt;/P&gt;&lt;P&gt;Select * from SALES where SALES_DATE &amp;gt; '2009-12-3' if that's your correct date format.&lt;/P&gt;&lt;P&gt;or&amp;nbsp; Select * from SALES where year(SALES_DATE)&amp;gt;=2010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the second question, you could use and expression instead of a field. Then, your expression could be something like this: &lt;/P&gt;&lt;P&gt;= if(&amp;nbsp; SALES_DATE&amp;gt;=makedate(2010), SALES_DATE)&lt;/P&gt;&lt;P&gt;The problem is: if you create a date-based chart, this expression on a list will not prevent the data from showing on the chart for 2009, for example. You would have to change all the expressions for that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It`s better to solve it with question 1, because you application will use less memory and have better performance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 13:13:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditions-in-the-script-and-filters/m-p/254413#M1194252</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-31T13:13:40Z</dc:date>
    </item>
    <item>
      <title>Conditions in the script and filters</title>
      <link>https://community.qlik.com/t5/QlikView/Conditions-in-the-script-and-filters/m-p/254414#M1194253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I must be doing something wrong, because it does not let me put the condition there.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I tried to put a condition on another field (DOKNR), just to sure it is not a date-format isssue, but it does not work. What am I doing wrong? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ARTRAD:&lt;/P&gt;&lt;P&gt;LOAD ARTNR,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DOKNR,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `PRIS_ST_I`,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TBBEL;&lt;/P&gt;&lt;P&gt;SQL SELECT ARTNR,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DOKNR,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `PRIS_ST_I`,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TBBEL&lt;/P&gt;&lt;P&gt;FROM `C:\USERS\DOCUMENTS`\ARTRAD&lt;/P&gt;&lt;P&gt;WHERE DOKNR='1000';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 13:53:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditions-in-the-script-and-filters/m-p/254414#M1194253</guid>
      <dc:creator />
      <dc:date>2011-05-31T13:53:16Z</dc:date>
    </item>
    <item>
      <title>Conditions in the script and filters</title>
      <link>https://community.qlik.com/t5/QlikView/Conditions-in-the-script-and-filters/m-p/254415#M1194256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you reading a SQL Database or data files? &lt;/P&gt;&lt;P&gt;The SQL Select will only work for a database. &lt;/P&gt;&lt;P&gt;In other cases it be only a load statement.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 13:58:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditions-in-the-script-and-filters/m-p/254415#M1194256</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-31T13:58:04Z</dc:date>
    </item>
    <item>
      <title>Conditions in the script and filters</title>
      <link>https://community.qlik.com/t5/QlikView/Conditions-in-the-script-and-filters/m-p/254416#M1194258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am reading from a ODBC-connection, which is pointing towards three DBF-files. Not sure if that answers the question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So.... is there any other way of doing it? I find it so weird that it should be so difficult to limit the data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 14:06:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditions-in-the-script-and-filters/m-p/254416#M1194258</guid>
      <dc:creator />
      <dc:date>2011-05-31T14:06:38Z</dc:date>
    </item>
    <item>
      <title>Conditions in the script and filters</title>
      <link>https://community.qlik.com/t5/QlikView/Conditions-in-the-script-and-filters/m-p/254417#M1194259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It`s really strange. In the mean time, you could load all the data and then keep only what you need. &lt;/P&gt;&lt;P&gt;It would be something like this: &lt;/P&gt;&lt;P&gt;tempSales:&lt;/P&gt;&lt;P&gt;Select * from SALES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;noconcatenate&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;Load * resident tempSales&lt;/P&gt;&lt;P&gt;Where Year(Sales_Date)&amp;gt;2009;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table tempSales;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QV 10 will probably not recognize the `noconcatenate` but it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 14:23:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditions-in-the-script-and-filters/m-p/254417#M1194259</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-31T14:23:46Z</dc:date>
    </item>
    <item>
      <title>Conditions in the script and filters</title>
      <link>https://community.qlik.com/t5/QlikView/Conditions-in-the-script-and-filters/m-p/254418#M1194261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 14:49:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditions-in-the-script-and-filters/m-p/254418#M1194261</guid>
      <dc:creator />
      <dc:date>2011-05-31T14:49:03Z</dc:date>
    </item>
  </channel>
</rss>

