<?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: How do you break up a date range into intervals? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-you-break-up-a-date-range-into-intervals/m-p/834435#M993837</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A very sincere "thanks" to both swuehl and Marco for their quick and detailed responses. I tested Marco's suggestion with my app, and it seems to work just as I want. You saved me many hours, if not days, trying to figure this out! Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kenny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jun 2015 14:51:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-29T14:51:07Z</dc:date>
    <item>
      <title>How do you break up a date range into intervals?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-you-break-up-a-date-range-into-intervals/m-p/834432#M993834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. I have a pretty simple chart that looks like: &lt;IMG __jive_id="91037" alt="Release Date Chart.jpg" class="jive-image image-1" src="/legacyfs/online/91037_Release Date Chart.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;The X axis is a count of products; the Y axis is the Release Date for the product(s). The date range for this chart is customizable and is determined by a set of calendar objects (so for this example, I set a start date of 2015-06-12 and an end date of 2015-07-09, but the user could obviously choose any date range). Also notice that there isn't at least one product release for every date in b/t the selected date range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'd like to do is aggregate the product counts into two week intervals rather than by individual date, and I'd like the intervals to be two weeks forward and back from the current date. So, let's say today is 2015-06-25. The above chart would then have two bars (1st interval: 2015-06-12 to 2015-06-25 and the total # products = 9; 2nd interval: 2015-06-26 to 2015-07-09 and the total # products = 2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, since the date range is customizable, this function would have to account for partial intervals. For example, if today is 2015-06-25, but someone selects a date range of 2015-06-04 to 2015-07-15, then there would be four intervals:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interval 1: 2015-06-04 to 2015-06-11&lt;/P&gt;&lt;P&gt;Interval 2: 2015-06-12 to 2015-06-25&lt;/P&gt;&lt;P&gt;Interval 3: 2015-06-26 to 2015-07-09&lt;/P&gt;&lt;P&gt;Interval 4: 2015-07-10 to 2015-07-15&lt;/P&gt;&lt;P&gt;(each interval contains exactly 14 (or less) days and there are no overlap of any days).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how to do this? Thanks in advance for any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kenny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 20:18:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-you-break-up-a-date-range-into-intervals/m-p/834432#M993834</guid>
      <dc:creator />
      <dc:date>2015-06-26T20:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do you break up a date range into intervals?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-you-break-up-a-date-range-into-intervals/m-p/834433#M993835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr( Date(today()+floor(Date-today(),14)),Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should return a classification based on interval start dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;You can also create the intervals in your script, if you want, if the script runs daily&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 21:06:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-you-break-up-a-date-range-into-intervals/m-p/834433#M993835</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-26T21:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do you break up a date range into intervals?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-you-break-up-a-date-range-into-intervals/m-p/834434#M993836</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;some similar solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_170252_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/91057_QlikCommunity_Thread_170252_Pic2.JPG" style="height: 417px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_170252_Pic3.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/91064_QlikCommunity_Thread_170252_Pic3.JPG" style="height: 420px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_170252_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/91056_QlikCommunity_Thread_170252_Pic1.JPG" style="height: 136px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_170252_Pic4.JPG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/91065_QlikCommunity_Thread_170252_Pic4.JPG" style="height: 290px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 23:04:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-you-break-up-a-date-range-into-intervals/m-p/834434#M993836</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-06-26T23:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do you break up a date range into intervals?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-you-break-up-a-date-range-into-intervals/m-p/834435#M993837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A very sincere "thanks" to both swuehl and Marco for their quick and detailed responses. I tested Marco's suggestion with my app, and it seems to work just as I want. You saved me many hours, if not days, trying to figure this out! Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kenny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 14:51:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-you-break-up-a-date-range-into-intervals/m-p/834435#M993837</guid>
      <dc:creator />
      <dc:date>2015-06-29T14:51:07Z</dc:date>
    </item>
  </channel>
</rss>

