<?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: Filter by date range in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filter-by-date-range/m-p/1787963#M1210254</link>
    <description>&lt;P&gt;Just add a "Where" condition:&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;LDATE AS ODATE,&lt;BR /&gt;LNAME AS ONAME&lt;BR /&gt;RESIDENT CHECK&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE LDATE &amp;gt;= MonthStart(LDATE) and LDATE &amp;lt;= Today()-1;&lt;/STRONG&gt;&lt;BR /&gt;Store OUT into out.csv (TXT);&lt;/P&gt;&lt;P&gt;Note that if LDATE is not an actual date type, you will need to convert it to one, or use other formulas to get your start and end points depending on the specific date format you use.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Mar 2021 15:05:43 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2021-03-03T15:05:43Z</dc:date>
    <item>
      <title>Filter by date range</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-by-date-range/m-p/1787960#M1210252</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hello,&amp;nbsp;&lt;BR /&gt;&lt;/STRONG&gt;I am new to QlikView. I have wrote a script to connect to a ODBC datasource and loading data from a table which I am storing as a csv file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script is loading all rows from the table. However I need to implement a logic where data from the start of the month till yesterday needs to be stored. How can I achieve this through the script? I'd appreciate any pointers.&lt;/P&gt;&lt;P&gt;Here is how my script looks like.&lt;BR /&gt;&lt;BR /&gt;ODBC CONNECT TO hivesource;&lt;BR /&gt;CHECK:&lt;BR /&gt;LOAD&lt;BR /&gt;table1.date AS LDATE,&lt;BR /&gt;table1.name AS LNAME;&lt;BR /&gt;SQL SELECT date, name from schema.table1; //both fields are string datatype&lt;/P&gt;&lt;P&gt;OUT:&lt;BR /&gt;Load&lt;BR /&gt;LDATE AS ODATE,&lt;BR /&gt;LNAME AS ONAME&lt;BR /&gt;RESIDENT CHECK;&lt;BR /&gt;Store OUT into out.csv (TXT);&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 14:57:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-by-date-range/m-p/1787960#M1210252</guid>
      <dc:creator>desiderio89</dc:creator>
      <dc:date>2021-03-03T14:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Filter by date range</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-by-date-range/m-p/1787963#M1210254</link>
      <description>&lt;P&gt;Just add a "Where" condition:&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;LDATE AS ODATE,&lt;BR /&gt;LNAME AS ONAME&lt;BR /&gt;RESIDENT CHECK&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE LDATE &amp;gt;= MonthStart(LDATE) and LDATE &amp;lt;= Today()-1;&lt;/STRONG&gt;&lt;BR /&gt;Store OUT into out.csv (TXT);&lt;/P&gt;&lt;P&gt;Note that if LDATE is not an actual date type, you will need to convert it to one, or use other formulas to get your start and end points depending on the specific date format you use.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 15:05:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-by-date-range/m-p/1787963#M1210254</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-03-03T15:05:43Z</dc:date>
    </item>
  </channel>
</rss>

