<?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 Creating periods and link last order dates per customer in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-periods-and-link-last-order-dates-per-customer/m-p/250110#M707398</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hei try to install a script a long this lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for last order date by customer in the script use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load max(OrderDate)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as LastOrderDate, &lt;/P&gt;&lt;P&gt; year(max(OrderDate) )&amp;nbsp; as LastOrderYear, &lt;/P&gt;&lt;P&gt; CustomerID&lt;/P&gt;&lt;P&gt;Resident Orders&lt;/P&gt;&lt;P&gt;group by CustomerID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Periods:&lt;/P&gt;&lt;P&gt;Period,StartYear,EndYear&lt;/P&gt;&lt;P&gt;1,2000,2001&lt;/P&gt;&lt;P&gt;2,2002,2003&lt;/P&gt;&lt;P&gt;3,2004,2005&lt;/P&gt;&lt;P&gt;4,2006,2007&lt;/P&gt;&lt;P&gt;5,2008,2009&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;intervalmatch (LastOrderYear)&amp;nbsp;&amp;nbsp;&amp;nbsp; load StartYear&amp;nbsp;&amp;nbsp;&amp;nbsp; EndYear resident Periods;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jan 2012 13:40:30 GMT</pubDate>
    <dc:creator>lironbaram</dc:creator>
    <dc:date>2012-01-04T13:40:30Z</dc:date>
    <item>
      <title>Creating periods and link last order dates per customer</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-periods-and-link-last-order-dates-per-customer/m-p/250109#M707397</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 trying to create period for the last order date of customers.&lt;/P&gt;&lt;P&gt;Customers may have mulitple pruchases or may not have purchased anything in the periods noted below. Only the last order date per customer is relevant.&lt;/P&gt;&lt;P&gt;The periods are spanning two years:&lt;/P&gt;&lt;P&gt;Period,StartYear,EndYear&lt;/P&gt;&lt;P&gt;1,2000,2001&lt;/P&gt;&lt;P&gt;2,2002,2003&lt;/P&gt;&lt;P&gt;3,2004,2005&lt;/P&gt;&lt;P&gt;4,2006,2007&lt;/P&gt;&lt;P&gt;5,2008,2009&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to use the values of those periods in a calculation.&lt;/P&gt;&lt;P&gt;First of all how do I get the last order date per customer and how do I then link that to the periods above?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2012 12:52:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-periods-and-link-last-order-dates-per-customer/m-p/250109#M707397</guid>
      <dc:creator />
      <dc:date>2012-01-04T12:52:43Z</dc:date>
    </item>
    <item>
      <title>Creating periods and link last order dates per customer</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-periods-and-link-last-order-dates-per-customer/m-p/250110#M707398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hei try to install a script a long this lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for last order date by customer in the script use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load max(OrderDate)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as LastOrderDate, &lt;/P&gt;&lt;P&gt; year(max(OrderDate) )&amp;nbsp; as LastOrderYear, &lt;/P&gt;&lt;P&gt; CustomerID&lt;/P&gt;&lt;P&gt;Resident Orders&lt;/P&gt;&lt;P&gt;group by CustomerID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Periods:&lt;/P&gt;&lt;P&gt;Period,StartYear,EndYear&lt;/P&gt;&lt;P&gt;1,2000,2001&lt;/P&gt;&lt;P&gt;2,2002,2003&lt;/P&gt;&lt;P&gt;3,2004,2005&lt;/P&gt;&lt;P&gt;4,2006,2007&lt;/P&gt;&lt;P&gt;5,2008,2009&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;intervalmatch (LastOrderYear)&amp;nbsp;&amp;nbsp;&amp;nbsp; load StartYear&amp;nbsp;&amp;nbsp;&amp;nbsp; EndYear resident Periods;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2012 13:40:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-periods-and-link-last-order-dates-per-customer/m-p/250110#M707398</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2012-01-04T13:40:30Z</dc:date>
    </item>
    <item>
      <title>Creating periods and link last order dates per customer</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-periods-and-link-last-order-dates-per-customer/m-p/250111#M707399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Liron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help. That works like a treat!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2012 23:52:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-periods-and-link-last-order-dates-per-customer/m-p/250111#M707399</guid>
      <dc:creator />
      <dc:date>2012-01-04T23:52:56Z</dc:date>
    </item>
  </channel>
</rss>

