<?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: Date difference between two transactions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-difference-between-two-transactions/m-p/1434974#M431194</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want an average per customer, or an average overall? Do you want to calculate in the front end or in the load script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Sep 2017 06:34:40 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2017-09-07T06:34:40Z</dc:date>
    <item>
      <title>Date difference between two transactions</title>
      <link>https://community.qlik.com/t5/QlikView/Date-difference-between-two-transactions/m-p/1434966#M431186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have sales records table containing following columns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;OrderID&lt;/LI&gt;&lt;LI&gt;Customer Name&lt;/LI&gt;&lt;LI&gt;Sale Date&lt;/LI&gt;&lt;LI&gt;Product Sold &lt;/LI&gt;&lt;LI&gt;Sales Rep Name&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Order ID is not unique as one order can contain multiple products.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would be the expression to count following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;average interval in days between each purchase by customers!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So as an example, I would like to evaluate which customer is buying more frequently and which customer is buying less frequently?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2017 23:22:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-difference-between-two-transactions/m-p/1434966#M431186</guid>
      <dc:creator />
      <dc:date>2017-09-04T23:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Date difference between two transactions</title>
      <link>https://community.qlik.com/t5/QlikView/Date-difference-between-two-transactions/m-p/1434967#M431187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Avg({&amp;lt;[Product Sold] = {"=Count([Customer Name] &amp;gt;= 0 and Count([Customer Name] &amp;lt;= 1))"}&amp;gt;} [Customer Name])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 01:28:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-difference-between-two-transactions/m-p/1434967#M431187</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-05T01:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Date difference between two transactions</title>
      <link>https://community.qlik.com/t5/QlikView/Date-difference-between-two-transactions/m-p/1434968#M431188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you share a sample data set, may be in excel or in inline load with qvw?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 04:27:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-difference-between-two-transactions/m-p/1434968#M431188</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-09-05T04:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Date difference between two transactions</title>
      <link>https://community.qlik.com/t5/QlikView/Date-difference-between-two-transactions/m-p/1434969#M431189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does each OrderID have only one Sale Date, or can there be several?&lt;/P&gt;&lt;P&gt;If several, which interval do you wish to use (max order to min order date / average order date to average order date etc)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 04:58:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-difference-between-two-transactions/m-p/1434969#M431189</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-09-05T04:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Date difference between two transactions</title>
      <link>https://community.qlik.com/t5/QlikView/Date-difference-between-two-transactions/m-p/1434970#M431190</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;PFA, hope it will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer 1 purchases product at an interval of 10 days, Customer 2 at 3 days and Cutomer 3&amp;nbsp; makes a purchase once in every 15 day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Raja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 09:41:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-difference-between-two-transactions/m-p/1434970#M431190</guid>
      <dc:creator>arasaraja_cts</dc:creator>
      <dc:date>2017-09-05T09:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Date difference between two transactions</title>
      <link>https://community.qlik.com/t5/QlikView/Date-difference-between-two-transactions/m-p/1434971#M431191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your solution Arasaraja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see in your load script that you are doing inline load (which in my case will be the actual table load).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but May i know what is the purpose of loading Interval after loading the main table? (I could not see anything special int that load)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 11:41:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-difference-between-two-transactions/m-p/1434971#M431191</guid>
      <dc:creator />
      <dc:date>2017-09-05T11:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Date difference between two transactions</title>
      <link>https://community.qlik.com/t5/QlikView/Date-difference-between-two-transactions/m-p/1434972#M431192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each order id only contains 1 date. If it had more then 1 dates such as (order date, shipping date, etc,) then it would be have been easier to count interval between those dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what I want to count is the average gap between each orders by customer names. or product names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 11:42:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-difference-between-two-transactions/m-p/1434972#M431192</guid>
      <dc:creator />
      <dc:date>2017-09-05T11:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Date difference between two transactions</title>
      <link>https://community.qlik.com/t5/QlikView/Date-difference-between-two-transactions/m-p/1434973#M431193</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;It is not required you can remove lines 36 to 51 forgot to remove, only the inline table will do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 12:02:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-difference-between-two-transactions/m-p/1434973#M431193</guid>
      <dc:creator>arasaraja_cts</dc:creator>
      <dc:date>2017-09-05T12:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Date difference between two transactions</title>
      <link>https://community.qlik.com/t5/QlikView/Date-difference-between-two-transactions/m-p/1434974#M431194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want an average per customer, or an average overall? Do you want to calculate in the front end or in the load script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 06:34:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-difference-between-two-transactions/m-p/1434974#M431194</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-09-07T06:34:40Z</dc:date>
    </item>
  </channel>
</rss>

