<?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 partial month data from Script Load? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exclude-partial-month-data-from-Script-Load/m-p/825958#M666435</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I got it.&amp;nbsp; I replaced Today() in your code with a constant MaxDate value I created in a previous table, and it worked!&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where ( monthend(Date)=floor(peek('MaxDate',0,'MaxDateTable')) &lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;Date &amp;lt;=floor(peek('MaxDate',0,'MaxDateTable'))) &lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;( Date &amp;lt;=date(floor(monthend(addmonths(floor(peek('MaxDate',0,'MaxDateTable')),-1))), 'YYYYMMDD'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Dec 2014 15:47:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-15T15:47:29Z</dc:date>
    <item>
      <title>Exclude partial month data from Script Load?</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-partial-month-data-from-Script-Load/m-p/825955#M666432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have data I'm importing from a QVD file that has multiple rows of data for each day, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;Month,&lt;/P&gt;&lt;P&gt;Year,&lt;/P&gt;&lt;P&gt;Amount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;data.qvd&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This data has activity every day, so every date has data in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to put in a WHERE clause to exclude the most recent month's worth of data but only if it's a partial month.&amp;nbsp; That way I can load the data from my QVD with only full months' worth of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to use MonthEnd function, but cannot seem to get it right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 03:44:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-partial-month-data-from-Script-Load/m-p/825955#M666432</guid>
      <dc:creator />
      <dc:date>2014-12-15T03:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude partial month data from Script Load?</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-partial-month-data-from-Script-Load/m-p/825956#M666433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;where ( monthend(date_field)=today() and date_field &amp;lt;=today() ) or ( date_field &amp;lt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;date(floor(monthend(addmonths(Today(),-1))), 'YYYYMMDD'))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not tested sorry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 04:07:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-partial-month-data-from-Script-Load/m-p/825956#M666433</guid>
      <dc:creator />
      <dc:date>2014-12-15T04:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude partial month data from Script Load?</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-partial-month-data-from-Script-Load/m-p/825957#M666434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This did not work, but perhaps that is because you are using Today function and there is a lag in when I run this... in other word.... today might be 12/15/14, but the most recent activity date might be 12/6/2014... and I'm trying to exclude the partial month of December in this case..... so would I not use the Today function and use max(date) instead?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 13:34:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-partial-month-data-from-Script-Load/m-p/825957#M666434</guid>
      <dc:creator />
      <dc:date>2014-12-15T13:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude partial month data from Script Load?</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-partial-month-data-from-Script-Load/m-p/825958#M666435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I got it.&amp;nbsp; I replaced Today() in your code with a constant MaxDate value I created in a previous table, and it worked!&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where ( monthend(Date)=floor(peek('MaxDate',0,'MaxDateTable')) &lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;Date &amp;lt;=floor(peek('MaxDate',0,'MaxDateTable'))) &lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;( Date &amp;lt;=date(floor(monthend(addmonths(floor(peek('MaxDate',0,'MaxDateTable')),-1))), 'YYYYMMDD'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 15:47:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-partial-month-data-from-Script-Load/m-p/825958#M666435</guid>
      <dc:creator />
      <dc:date>2014-12-15T15:47:29Z</dc:date>
    </item>
  </channel>
</rss>

