<?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: Exclude the Future Date in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Exclude-the-Future-Date/m-p/1127111#M19675</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that you are putting this WHERE statement in the SQL statement. Which I think is the right thing to do because you will only bring those rows which are needed from the database. But the issue here is that QlikView's syntax won't work in your SQL statement because the execution is sent over to the database. So in order to make this WHERE statement to work, you would need a statement which you would use when you run it outside QlikView (for example in TOAD).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 Jun 2016 12:35:21 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-06-04T12:35:21Z</dc:date>
    <item>
      <title>Exclude the Future Date</title>
      <link>https://community.qlik.com/t5/App-Development/Exclude-the-Future-Date/m-p/1127109#M19673</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;Kindly help me in the below query for Qlik Sense:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have dates ranges from &lt;SPAN style="font-size: 13.3333px;"&gt;2014-02-01 00:00:00 to &lt;SPAN style="font-size: 13.3333px;"&gt;2017-12-31 00:00:00 which includes the future dates as well.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to include the filter in LOAD statement which includes the dates from &lt;SPAN style="font-size: 13.3333px;"&gt;2014-02-01 00:00:00 till today's date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I try to write the code in SQL as:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;where DATE(FLOOR(Active_date), 'YYYY-MM-DD') &amp;lt;= DATE(FLOOR(TODAY(), 'YYYY-MM-DD')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;But it gives the error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Please help to correct the formula.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Deepanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jun 2016 07:28:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Exclude-the-Future-Date/m-p/1127109#M19673</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-04T07:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude the Future Date</title>
      <link>https://community.qlik.com/t5/App-Development/Exclude-the-Future-Date/m-p/1127110#M19674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post your complete LOAD statement and post the error message you get?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, correctly interprete your date fields:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2954"&gt;Why don’t my dates work?&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2622"&gt;Get the Dates Right&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you should be able to limit the date range in a WHERE clause:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD ...&lt;/P&gt;&lt;P&gt;FROM ...&lt;/P&gt;&lt;P&gt;WHERE Active_date &amp;lt;= Today(1); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or create a flag in your master calendar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Date &amp;lt;= Today(1), 1,0) AS ToDateFlag,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2802"&gt;The Master Calendar&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jun 2016 09:35:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Exclude-the-Future-Date/m-p/1127110#M19674</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-04T09:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude the Future Date</title>
      <link>https://community.qlik.com/t5/App-Development/Exclude-the-Future-Date/m-p/1127111#M19675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that you are putting this WHERE statement in the SQL statement. Which I think is the right thing to do because you will only bring those rows which are needed from the database. But the issue here is that QlikView's syntax won't work in your SQL statement because the execution is sent over to the database. So in order to make this WHERE statement to work, you would need a statement which you would use when you run it outside QlikView (for example in TOAD).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jun 2016 12:35:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Exclude-the-Future-Date/m-p/1127111#M19675</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-04T12:35:21Z</dc:date>
    </item>
  </channel>
</rss>

