<?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: Importing a table using a date filter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Importing-a-table-using-a-date-filter/m-p/473519#M696812</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="jive-username-link-wrapper"&gt;Many thanks, especially to zohaibirshad, the statement 'WHERE (((Date)&amp;gt;Now()));' did what I was looking for!&lt;/P&gt;&lt;P class="jive-username-link-wrapper"&gt;&lt;/P&gt;&lt;P class="jive-username-link-wrapper"&gt;I also tried with a little less brackets, and that seems to work too: 'where [Date]&amp;gt;Now();'&lt;/P&gt;&lt;P class="jive-username-link-wrapper"&gt;&lt;/P&gt;&lt;P class="jive-username-link-wrapper"&gt;Michelle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Apr 2013 07:26:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-24T07:26:14Z</dc:date>
    <item>
      <title>Importing a table using a date filter</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-a-table-using-a-date-filter/m-p/473510#M696803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to load data from an MS Access MDB file into Qlikview (The connection to the Access Database works fine). The problem is that I want to load only a subset of this data, based on today's date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In more detail: the data has a field that contains 'planned hours' (called Hours_Planning), and Ionly want to load the future planned hours, starting from 'today'. below is an excerpt of the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Week] as [Week_Planning],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ProjectID] as [ProjectID_Planning],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [PlanningID] as [PlanningID_Planning],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [PersonnelID] as [EmployeeNumber_Planning],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Hours] as [Hours_Planning]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;FROM tblPlanning;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The field [Week_Planning] should only be imported with dates greater than (or equal to) today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already tried the following 3 where-statements, but to no avail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where DATE([Week_Planning], 'DD-MM-YYYY')&amp;gt;=DATE(01-01-2012, 'DD-MM-YYYY'); //we tried with a hardcoded startdate of January 1, as well as Today()&lt;BR /&gt;where [Week_Planning] &amp;gt;='$Today()';&lt;BR /&gt;where([Week_Planning])&amp;gt;=(Today());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michelle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 12:00:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-a-table-using-a-date-filter/m-p/473510#M696803</guid>
      <dc:creator />
      <dc:date>2013-04-22T12:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a table using a date filter</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-a-table-using-a-date-filter/m-p/473511#M696804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;WHERE&lt;/SPAN&gt; &lt;SPAN style="color: #737373; font-size: 12.727272033691406px; background-color: #ffffff; font-family: Arial;"&gt;[Week_Planning]&lt;/SPAN&gt; &amp;gt;= &lt;SPAN class="s1"&gt;Date&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;Today&lt;/SPAN&gt;()) ; &lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 17:29:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-a-table-using-a-date-filter/m-p/473511#M696804</guid>
      <dc:creator />
      <dc:date>2013-04-22T17:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a table using a date filter</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-a-table-using-a-date-filter/m-p/473512#M696805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, just realized that likely will not work, can you send an example of the &lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.727272033691406px; background-color: #ffffff;"&gt; [Week]&amp;nbsp; field?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 17:30:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-a-table-using-a-date-filter/m-p/473512#M696805</guid>
      <dc:creator />
      <dc:date>2013-04-22T17:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a table using a date filter</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-a-table-using-a-date-filter/m-p/473513#M696806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the week field returns a number, 1 - 52, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="background-color: #ffffff; font-size: 12.727272033691406px; color: #737373; font-family: Arial;"&gt;WHERE&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.727272033691406px; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12.727272033691406px; color: #737373; font-family: Arial;"&gt;[Week_Planning]&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.727272033691406px; background-color: #ffffff;"&gt; &amp;gt;= &lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt;"&gt;week&lt;/STRONG&gt;&lt;SPAN class="s1" style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt;"&gt;today&lt;/STRONG&gt;&lt;SPAN class="s1" style="font-size: 10pt;"&gt;()) ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 17:32:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-a-table-using-a-date-filter/m-p/473513#M696806</guid>
      <dc:creator />
      <dc:date>2013-04-22T17:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a table using a date filter</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-a-table-using-a-date-filter/m-p/473514#M696807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you say date(week_planinng) you will only get a date eg. 22 and you cannot filter on 22&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so where week_planning &amp;gt;= '2011-01-01'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for instance if you want a hardcoded day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want the todays date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;week_planning &amp;gt;= Today()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOWEVER - make sure the date Today is givning you is the same format as in Week_planning&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally its SET DateFormat='DD-MM-YYYY'; for my country settings&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check that yours are the same as in week_planning&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 17:43:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-a-table-using-a-date-filter/m-p/473514#M696807</guid>
      <dc:creator />
      <dc:date>2013-04-22T17:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a table using a date filter</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-a-table-using-a-date-filter/m-p/473515#M696808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for the quick replies!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Mattsies,&lt;/P&gt;&lt;P&gt;The field [Week] (imported as [Week_Planning]) just contains a date in the format DD-MM-YYYY. (e.g. 03-09-2012).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From all your replies, I have tried adding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- WHERE [Week_Planning] &amp;gt;= Date(Today());&lt;BR /&gt;- where ([Week_Planning])&amp;gt;= date()&lt;BR /&gt;- WHERE [Week_Planning] &amp;gt;= Today()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I always get syntax errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The date format set at the beginning of the script is:&lt;/P&gt;&lt;P&gt;SET DateFormat='DD-MM-YYYY';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I add the 'where' statement after the FROM statement, that is correct right? For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Week] as [Week_Planning],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ProjectID] as [ProjectID_Planning],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [PlanningID] as [PlanningID_Planning],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [PersonnelID] as [EmployeeNumber_Planning],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Hours] as [Hours_Planning]&lt;/P&gt;&lt;P&gt;FROM tblPlanning&lt;BR /&gt;WHERE [Week_Planning] &amp;gt;= Date(Today());&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks again for any help, of you need additional information, just let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michelle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 12:15:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-a-table-using-a-date-filter/m-p/473515#M696808</guid>
      <dc:creator />
      <dc:date>2013-04-23T12:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a table using a date filter</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-a-table-using-a-date-filter/m-p/473516#M696809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;SQL SELECT&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Week] as [Week_Planning],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ProjectID] as [ProjectID_Planning],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [PlanningID] as [PlanningID_Planning],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [PersonnelID] as [EmployeeNumber_Planning],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Hours] as [Hours_Planning]&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;FROM tblPlanning&lt;BR /&gt;&lt;STRONG&gt;WHERE [Week_Planning] &amp;gt;= Date()&lt;/STRONG&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 12:23:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-a-table-using-a-date-filter/m-p/473516#M696809</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-04-23T12:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a table using a date filter</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-a-table-using-a-date-filter/m-p/473517#M696810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Gysbert:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your suggestion, this time not with a syntax error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ErrorSource: Microsoft Access Database Engine, ErrorMsg: No value given for one or more required parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michelle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 12:32:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-a-table-using-a-date-filter/m-p/473517#M696810</guid>
      <dc:creator />
      <dc:date>2013-04-23T12:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a table using a date filter</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-a-table-using-a-date-filter/m-p/473518#M696811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;You have two options &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;1/ Use the preceding load, which will enable you to use the QlikView functionality&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Where Date &amp;gt; Today()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;LOAD ID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; Date;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;SQL SELECT *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;FROM Data&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;2/ add the where clause in the SQL and use Access functionality. Access syntax requires a lot of brackets see below example&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;LOAD ID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; Date;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;SQL SELECT *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;FROM Data&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;WHERE (((Date)&amp;gt;Now()));&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 13:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-a-table-using-a-date-filter/m-p/473518#M696811</guid>
      <dc:creator />
      <dc:date>2013-04-23T13:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a table using a date filter</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-a-table-using-a-date-filter/m-p/473519#M696812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="jive-username-link-wrapper"&gt;Many thanks, especially to zohaibirshad, the statement 'WHERE (((Date)&amp;gt;Now()));' did what I was looking for!&lt;/P&gt;&lt;P class="jive-username-link-wrapper"&gt;&lt;/P&gt;&lt;P class="jive-username-link-wrapper"&gt;I also tried with a little less brackets, and that seems to work too: 'where [Date]&amp;gt;Now();'&lt;/P&gt;&lt;P class="jive-username-link-wrapper"&gt;&lt;/P&gt;&lt;P class="jive-username-link-wrapper"&gt;Michelle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 07:26:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-a-table-using-a-date-filter/m-p/473519#M696812</guid>
      <dc:creator />
      <dc:date>2013-04-24T07:26:14Z</dc:date>
    </item>
  </channel>
</rss>

