<?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 to do this? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-do-this/m-p/1268688#M399300</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;ExpandedTable:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; CustomerID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,FirstOrderDate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,iterno() as PeriodNumber&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,FirstOrderDate+(iterno()-1)*28 as StartPeriod&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,FirstOrderDate+iterno()*28-1 as EndPeriod&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;RESIDENT RawTable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;WHILE FirstOrderDate+iterno()*28-1 &amp;lt;= yearend(today())&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Nov 2016 17:22:34 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2016-11-17T17:22:34Z</dc:date>
    <item>
      <title>How to do this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-this/m-p/1268685#M399297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this raw table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 178px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="79"&gt;CustomerId&lt;/TD&gt;&lt;TD width="99"&gt;FirstOrderDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;C00001&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;01/01/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;C00002&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;01/03/2016&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I want to create periods of 28 days each, where FirstorderDate is the date that our customer starts with us. The starting period is the FOD and the last date period is Starting Period + 27 days......till end of the present year.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2016-11-17_16h07_27.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/144171_2016-11-17_16h07_27.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many many thank's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 15:08:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-this/m-p/1268685#M399297</guid>
      <dc:creator>ecabanas</dc:creator>
      <dc:date>2016-11-17T15:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to do this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-this/m-p/1268686#M399298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The logic is clear when looking at example C00001. But for customer C00002, the periods run well into 2017, though you state that they should run "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;.&lt;EM&gt;till end of the present year.&lt;/EM&gt;&lt;/SPAN&gt;" And they only cover 11 calendar months. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something is missing in your definition?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 15:51:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-this/m-p/1268686#M399298</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-11-17T15:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to do this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-this/m-p/1268687#M399299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I did the excel calculations too quick, for Customer2 the last period is the number 10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 16:41:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-this/m-p/1268687#M399299</guid>
      <dc:creator>ecabanas</dc:creator>
      <dc:date>2016-11-17T16:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to do this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-this/m-p/1268688#M399300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;ExpandedTable:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; CustomerID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,FirstOrderDate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,iterno() as PeriodNumber&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,FirstOrderDate+(iterno()-1)*28 as StartPeriod&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,FirstOrderDate+iterno()*28-1 as EndPeriod&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;RESIDENT RawTable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;WHILE FirstOrderDate+iterno()*28-1 &amp;lt;= yearend(today())&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 17:22:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-this/m-p/1268688#M399300</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-11-17T17:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to do this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-this/m-p/1268689#M399301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yesss, many many thank's Peter!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 17:41:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-this/m-p/1268689#M399301</guid>
      <dc:creator>ecabanas</dc:creator>
      <dc:date>2016-11-17T17:41:42Z</dc:date>
    </item>
  </channel>
</rss>

