<?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: Calculating Customer Purchasing Cycle in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-Customer-Purchasing-Cycle/m-p/1100134#M365099</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do the aggregation on the front end using Sum() function. How is 4996 = 4.6 years?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jul 2016 18:33:48 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-07-07T18:33:48Z</dc:date>
    <item>
      <title>Calculating Customer Purchasing Cycle</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Customer-Purchasing-Cycle/m-p/1100127#M365092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm stuck with a predicament, I was wondering how I would calculate a customers purchasing cycle and get a graph like this below if possible. However this time around I would get the different vehicle desciptions in the x-axis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Repurchases Graph.png" class="jive-image image-1" src="/legacyfs/online/130281_Repurchases Graph.png" style="height: 673px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;my data might be a problem at the moment since the repurchasing period needs to be calculated for each model and then the average of the purchasing cycle is calculated thereafter.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;here is a sample of my data below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="684"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="19" width="108"&gt;Business Partner&lt;/TD&gt;&lt;TD width="64"&gt;BP: First Name&lt;/TD&gt;&lt;TD width="64"&gt;BP: Surname&lt;/TD&gt;&lt;TD width="64"&gt;Vehicle Version&lt;/TD&gt;&lt;TD colspan="2" width="128"&gt;Vehicle Series&lt;/TD&gt;&lt;TD width="64"&gt;Vehicle Model&lt;/TD&gt;&lt;TD width="64"&gt;Description&lt;/TD&gt;&lt;TD class="xl63" width="64"&gt;Calendar day&lt;/TD&gt;&lt;TD width="64"&gt;Sales&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="19"&gt;10001696&lt;/TD&gt;&lt;TD&gt;S&lt;/TD&gt;&lt;TD&gt;van Wyk&lt;/TD&gt;&lt;TD&gt;E32&lt;/TD&gt;&lt;TD align="right"&gt;7&lt;/TD&gt;&lt;TD&gt;7 SERIES&lt;/TD&gt;&lt;TD&gt;GA48&lt;/TD&gt;&lt;TD&gt;730i Sedan&lt;/TD&gt;&lt;TD class="xl63"&gt;05/01/1988&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="19"&gt;10001696&lt;/TD&gt;&lt;TD&gt;S&lt;/TD&gt;&lt;TD&gt;van Wyk&lt;/TD&gt;&lt;TD&gt;E32&lt;/TD&gt;&lt;TD align="right"&gt;7&lt;/TD&gt;&lt;TD&gt;7 SERIES&lt;/TD&gt;&lt;TD&gt;GA48&lt;/TD&gt;&lt;TD&gt;730i Sedan&lt;/TD&gt;&lt;TD class="xl63"&gt;31/08/1990&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="19"&gt;10001696&lt;/TD&gt;&lt;TD&gt;S&lt;/TD&gt;&lt;TD&gt;van Wyk&lt;/TD&gt;&lt;TD&gt;E32&lt;/TD&gt;&lt;TD align="right"&gt;7&lt;/TD&gt;&lt;TD&gt;7 SERIES&lt;/TD&gt;&lt;TD&gt;GA48&lt;/TD&gt;&lt;TD&gt;730i Sedan&lt;/TD&gt;&lt;TD class="xl63"&gt;17/09/1991&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="19"&gt;10002228&lt;/TD&gt;&lt;TD&gt;Ronald Charles&lt;/TD&gt;&lt;TD&gt;Russell&lt;/TD&gt;&lt;TD&gt;E32&lt;/TD&gt;&lt;TD align="right"&gt;7&lt;/TD&gt;&lt;TD&gt;7 SERIES&lt;/TD&gt;&lt;TD&gt;GB68&lt;/TD&gt;&lt;TD&gt;735i Sedan&lt;/TD&gt;&lt;TD class="xl63"&gt;24/08/1992&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="19"&gt;10002302&lt;/TD&gt;&lt;TD&gt;RIDWAN&lt;/TD&gt;&lt;TD&gt;JASAT&lt;/TD&gt;&lt;TD&gt;E65&lt;/TD&gt;&lt;TD align="right"&gt;7&lt;/TD&gt;&lt;TD&gt;7 SERIES&lt;/TD&gt;&lt;TD&gt;HL02&lt;/TD&gt;&lt;TD&gt;760i Sedan&lt;/TD&gt;&lt;TD class="xl63"&gt;30/12/2009&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="19"&gt;10002302&lt;/TD&gt;&lt;TD&gt;RIDWAN&lt;/TD&gt;&lt;TD&gt;JASAT&lt;/TD&gt;&lt;TD&gt;E65&lt;/TD&gt;&lt;TD align="right"&gt;7&lt;/TD&gt;&lt;TD&gt;7 SERIES&lt;/TD&gt;&lt;TD&gt;HL62&lt;/TD&gt;&lt;TD&gt;740i Sedan&lt;/TD&gt;&lt;TD class="xl63"&gt;29/09/2006&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="19"&gt;10002370&lt;/TD&gt;&lt;TD&gt;Brendan John&lt;/TD&gt;&lt;TD&gt;Traill&lt;/TD&gt;&lt;TD&gt;E32&lt;/TD&gt;&lt;TD align="right"&gt;7&lt;/TD&gt;&lt;TD&gt;7 SERIES&lt;/TD&gt;&lt;TD&gt;GA48&lt;/TD&gt;&lt;TD&gt;730i Sedan&lt;/TD&gt;&lt;TD class="xl63"&gt;01/08/1996&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 09:48:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Customer-Purchasing-Cycle/m-p/1100127#M365092</guid>
      <dc:creator>kaygee28</dc:creator>
      <dc:date>2016-07-06T09:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Customer Purchasing Cycle</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Customer-Purchasing-Cycle/m-p/1100128#M365093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh Okay, I think I found a way but I need to find a way to make the calendar dates subtract from each other using the peek function. From then on I will create a chart with the description field as my dimension and I'll then average the newly crated &lt;SPAN style="font-size: 13.3333px;"&gt;[Repurchases] field. &lt;SPAN style="font-size: 13.3333px;"&gt;here is my code below:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Main:&lt;/P&gt;&lt;P&gt;LOAD [Business Partner], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [BP: First Name], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [BP: Surname], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Vehicle Version], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Vehicle Series], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F6, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Vehicle Model], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(date#([Calendar day],'dd/mm/yyyy')) as&amp;nbsp; [Calendar day],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&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&lt;/P&gt;&lt;P&gt;[BMW Repurchases.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [BMW (65)]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find_Duplicates:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If([Business Partner] = Peek('[Business Partner]', -1),[Calendar day] - Peek('[Calendar day]', -1),0) as [Repurchases]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resident Main;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Main;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 12:43:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Customer-Purchasing-Cycle/m-p/1100128#M365093</guid>
      <dc:creator>kaygee28</dc:creator>
      <dc:date>2016-07-06T12:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Customer Purchasing Cycle</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Customer-Purchasing-Cycle/m-p/1100129#M365094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share what you have right now and what are you trying to get to?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 03:34:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Customer-Purchasing-Cycle/m-p/1100129#M365094</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-07T03:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Customer Purchasing Cycle</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Customer-Purchasing-Cycle/m-p/1100130#M365095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure my last message was delivered but what Im trying to saty is that the peek function isn't picking up the date field which is the [Calendar day] field hence the calculations aren't being done properly.&lt;/P&gt;&lt;P&gt;For instance if Sunny has bought multiple cars in say 2010 and 2011 then the difference should be 1 year hence thats what I am trying to do with the peek function for each [Business Partner] field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ultimately I want to get a graph as shown below, with the Description field as my dimension and the repurchases field as my calculation index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Repurchases Graph.png" class="jive-image image-1" src="/legacyfs/online/130410_Repurchases Graph.png" style="height: 673px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 05:25:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Customer-Purchasing-Cycle/m-p/1100130#M365095</guid>
      <dc:creator>kaygee28</dc:creator>
      <dc:date>2016-07-07T05:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Customer Purchasing Cycle</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Customer-Purchasing-Cycle/m-p/1100131#M365096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think try this code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Main:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD [Business Partner], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [BP: First Name], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [BP: Surname], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Vehicle Version], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Vehicle Series], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F6, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Vehicle Model], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Date#([Calendar day], 'DD/MM/YYYY')) as [Calendar day],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[BMW Repurchases.xlsx]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is [BMW (65)]);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Find_Duplicates:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;SPAN style="color: #ff0000;"&gt; If([Business Partner] = Peek('Business Partner'), [Calendar day] - Peek('Calendar day'), 0) as [Repurchases]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Main&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By [Business Partner];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Main;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 14:25:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Customer-Purchasing-Cycle/m-p/1100131#M365096</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-07T14:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Customer Purchasing Cycle</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Customer-Purchasing-Cycle/m-p/1100132#M365097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not 100% sure, but you might need a sort on the Calendar day field as well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;Main:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;LOAD [Business Partner],&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [BP: First Name],&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [BP: Surname],&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Vehicle Version],&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Vehicle Series],&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F6,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Vehicle Model],&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Date#([Calendar day], 'DD/MM/YYYY')) as [Calendar day],&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;[BMW Repurchases.xlsx]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is [BMW (65)]);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;Find_Duplicates:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #ff0000; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;If([Business Partner] = Peek('Business Partner'), [Calendar day] - Peek('Calendar day'), 0) as [Repurchases]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;Resident Main&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;Order By [Business Partner]&lt;SPAN style="color: #ff0000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 13px; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;[Calendar day]&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;DROP Table Main;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 14:28:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Customer-Purchasing-Cycle/m-p/1100132#M365097</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-07T14:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Customer Purchasing Cycle</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Customer-Purchasing-Cycle/m-p/1100133#M365098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see but this doesn't aggregate for each unique [business partner] field, this does the calculation for all the business partners irrelevant of the ID, and furthermore the calculation is in integer format such as 4996 whereas I want it as 4.6 years for instance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 14:47:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Customer-Purchasing-Cycle/m-p/1100133#M365098</guid>
      <dc:creator>kaygee28</dc:creator>
      <dc:date>2016-07-07T14:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Customer Purchasing Cycle</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Customer-Purchasing-Cycle/m-p/1100134#M365099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do the aggregation on the front end using Sum() function. How is 4996 = 4.6 years?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 18:33:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Customer-Purchasing-Cycle/m-p/1100134#M365099</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-07T18:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Customer Purchasing Cycle</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Customer-Purchasing-Cycle/m-p/1100135#M365100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From my understanding a date is interpreted as a numeric in qlikview hence I was just making a generic reference&amp;nbsp; it wasn't even accurate, thanks Sunny!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 19:01:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Customer-Purchasing-Cycle/m-p/1100135#M365100</guid>
      <dc:creator>kaygee28</dc:creator>
      <dc:date>2016-07-07T19:01:44Z</dc:date>
    </item>
  </channel>
</rss>

