<?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: Date filter in Load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-filter-in-Load-script/m-p/60374#M786434</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Select *&lt;/P&gt;&lt;P&gt;FROM SomeTable&lt;/P&gt;&lt;P&gt;WHERE SomeDateColumn BETWEEN DATEADD(qq, DATEDIFF(qq, 0, GETDATE()), 0) AND DATEADD(dd, -1, DATEADD(qq, DATEDIFF(qq, 0, GETDATE()) +1, 0));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Mar 2018 17:57:51 GMT</pubDate>
    <dc:creator>wdchristensen</dc:creator>
    <dc:date>2018-03-06T17:57:51Z</dc:date>
    <item>
      <title>Date filter in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Date-filter-in-Load-script/m-p/60372#M786432</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;I am very new to QV and am trying to create a report in QV that I will be running every quarterly. I am trying to filter the date field in my SQL select statement in the load script so to load the dashboard with the last quarter data each time. However, I am having no luck. the script is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OLEDB CONNECT TO XXXXXXXXX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Table_Name]:&lt;/P&gt;&lt;P&gt;SQL Select ......,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ETL_DATE",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .........&lt;/P&gt;&lt;P&gt;From "XXXXXX";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason for this filter is so that I do not have to load over a million records each time I select "RELOAD" and my QV dashboard does not crash or take many hours when it comes to refreshing the data and can load only the selected dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can some one help me with this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-filter-in-Load-script/m-p/60372#M786432</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date filter in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Date-filter-in-Load-script/m-p/60373#M786433</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: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: fuchsia; background: white;"&gt;DATEADD&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;dd&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: fuchsia; background: white;"&gt;DATEADD&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;qq&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: fuchsia; background: white;"&gt;DATEDIFF&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;qq&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; 0&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: fuchsia; background: white;"&gt;GETDATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;()),&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; 0&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;))&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; LastDayOfPreviousQuarter&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: fuchsia; background: white;"&gt;DATEADD&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;qq&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: fuchsia; background: white;"&gt;DATEDIFF&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;qq&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; 0&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: fuchsia; background: white;"&gt;GETDATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;())&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; 1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; 0&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; FirstDayOfPreviousQuarter&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: fuchsia; background: white;"&gt;DATEADD&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;qq&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: fuchsia; background: white;"&gt;DATEDIFF&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;qq&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; 0&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: fuchsia; background: white;"&gt;GETDATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;()),&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; 0&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; FirstDayCurrentQuarter&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: fuchsia; background: white;"&gt;DATEADD&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;dd&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: fuchsia; background: white;"&gt;DATEADD&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;qq&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: fuchsia; background: white;"&gt;DATEDIFF&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;qq&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; 0&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: fuchsia; background: white;"&gt;GETDATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;())&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; 0&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray; background: white;"&gt;))&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; LastDayCurrentQuarter&lt;IMG alt="quarterExample.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/195486_quarterExample.PNG" style="height: 284px; width: 620px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2018 17:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-filter-in-Load-script/m-p/60373#M786433</guid>
      <dc:creator>wdchristensen</dc:creator>
      <dc:date>2018-03-06T17:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Date filter in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Date-filter-in-Load-script/m-p/60374#M786434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Select *&lt;/P&gt;&lt;P&gt;FROM SomeTable&lt;/P&gt;&lt;P&gt;WHERE SomeDateColumn BETWEEN DATEADD(qq, DATEDIFF(qq, 0, GETDATE()), 0) AND DATEADD(dd, -1, DATEADD(qq, DATEDIFF(qq, 0, GETDATE()) +1, 0));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2018 17:57:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-filter-in-Load-script/m-p/60374#M786434</guid>
      <dc:creator>wdchristensen</dc:creator>
      <dc:date>2018-03-06T17:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Date filter in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Date-filter-in-Load-script/m-p/60375#M786435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much William&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2018 14:18:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-filter-in-Load-script/m-p/60375#M786435</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-07T14:18:18Z</dc:date>
    </item>
  </channel>
</rss>

