<?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 Filter Date while Loading From Database in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filter-Date-while-Loading-From-Database/m-p/907463#M653309</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Problem in my DB. When i load the data from 2014. in some places, because of the user error. there some dates like 2090,2030 etc and also months. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to filter data while loading from 2014 jan 1st to Todays date. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the filter which i used while loading the data to get data from 2014 jan1st. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM cmsdhcc.dbo."department_income_view"&amp;nbsp; where YEAR("d_date") &amp;gt;=2014;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jul 2015 07:09:03 GMT</pubDate>
    <dc:creator>amithmurali</dc:creator>
    <dc:date>2015-07-21T07:09:03Z</dc:date>
    <item>
      <title>Filter Date while Loading From Database</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-Date-while-Loading-From-Database/m-p/907463#M653309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Problem in my DB. When i load the data from 2014. in some places, because of the user error. there some dates like 2090,2030 etc and also months. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to filter data while loading from 2014 jan 1st to Todays date. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the filter which i used while loading the data to get data from 2014 jan1st. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM cmsdhcc.dbo."department_income_view"&amp;nbsp; where YEAR("d_date") &amp;gt;=2014;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 07:09:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-Date-while-Loading-From-Database/m-p/907463#M653309</guid>
      <dc:creator>amithmurali</dc:creator>
      <dc:date>2015-07-21T07:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Date while Loading From Database</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-Date-while-Loading-From-Database/m-p/907464#M653310</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;You can add where filter in your SQL statement smth like below:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;where YEAR("d_date") &amp;gt;=2014 and "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;d_date"&amp;lt;=GETDATE()&lt;/SPAN&gt;; - example for SQL server&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;You can filter out in your LOAD satement:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LOAD * &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Where date(d_date)&amp;lt;=today()&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SQL SELECT ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Andrei&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 07:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-Date-while-Loading-From-Database/m-p/907464#M653310</guid>
      <dc:creator>crusader_</dc:creator>
      <dc:date>2015-07-21T07:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Date while Loading From Database</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-Date-while-Loading-From-Database/m-p/907465#M653311</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;Use &lt;STRONG&gt;and trunc(d_date)&amp;lt;=trunc(sysdate())&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;try below&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM cmsdhcc.dbo."department_income_view"&amp;nbsp; where YEAR("d_date") &amp;gt;=2014 &lt;STRONG&gt;and trunc(d_date)&amp;lt;=trunc(sysdate())&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 07:15:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-Date-while-Loading-From-Database/m-p/907465#M653311</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-07-21T07:15:12Z</dc:date>
    </item>
  </channel>
</rss>

