<?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 calulate the qty of the first purchase that bought specific item per vip?(set analysis and aggr) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684034#M247954</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi u do one thing , reduce the data upto 1000 records&amp;nbsp; or&amp;nbsp; sample excel format of original backend table and scramble the data in doc settings and post here ..yu'll get quick answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jul 2014 11:11:08 GMT</pubDate>
    <dc:creator>preminqlik</dc:creator>
    <dc:date>2014-07-25T11:11:08Z</dc:date>
    <item>
      <title>How to calulate the qty of the first purchase that bought specific item per vip?(set analysis and aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684017#M247937</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 have data like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="MKU QTY1.png" class="jive-image" src="/legacyfs/online/62472_MKU QTY1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to calculate 3 things:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.The first time the vip bought Item B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.The first time the vip purchased.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.The QTY of B in the first time that the vip bought Item B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done the 1 and 2, but for the 3, I wrote some expressions which only works when I choose one vip, If I didn't choose any vip, the expression didn't work, and I don't know why. You can see them in attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want the result is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="MKU QTY2.png" class="jive-image" src="/legacyfs/online/62474_MKU QTY2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually without column 2 and 3 is ok for me, and you also can create a new report and add some calculation dimension to make it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because I used these three expressions below, they all didn't work:&lt;/P&gt;&lt;P&gt;=Aggr(SUM({&amp;lt;TIME={"$(=DATE(min({&amp;lt;ITEM={"B"}&amp;gt;}TIME),'YYYY-MM-DD'))"},ITEM={"B"}&amp;gt;}QTY),VIP)&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;TIME={"$(=Aggr(DATE(min({&amp;lt;ITEM={"B"}&amp;gt;}TIME),'YYYY-MM-DD'),VIP))"},ITEM={"B"}&amp;gt;}QTY)&lt;/P&gt;&lt;P&gt;=Aggr(SUM({&amp;lt;TIME={"$(=Aggr(DATE(min({&amp;lt;ITEM={"B"}&amp;gt;}TIME),'YYYY-MM-DD'),VIP))"},ITEM={"B"}&amp;gt;}QTY),VIP)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to modify the script in backend, I just want to make it using dimension or expression and of course you can create a new report to calculate this without 1 and 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please feel free to contact me if you have any questions, and if you have any idea please tell me, thank you so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 05:25:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684017#M247937</guid>
      <dc:creator>uacg0009</dc:creator>
      <dc:date>2014-07-16T05:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to calulate the qty of the first purchase that bought specific item per vip?(set analysis and aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684018#M247938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr(min({&amp;lt;ITEM={"B"}&amp;gt;}QTY),VIP)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 06:03:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684018#M247938</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-07-16T06:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to calulate the qty of the first purchase that bought specific item per vip?(set analysis and aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684019#M247939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your answer, for this example, your answer is correct, but actually I have a lot of data, so If I change the VIP 002 data to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="MKU QTY3.png" class="jive-image" src="/legacyfs/online/62475_MKU QTY3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use your expression will get wrong result, because I want to calculate the QTY in the first purchase B per VIP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So do you have any idea to solve that? or if you have any problems please tell me, thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 07:14:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684019#M247939</guid>
      <dc:creator>uacg0009</dc:creator>
      <dc:date>2014-07-16T07:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to calulate the qty of the first purchase that bought specific item per vip?(set analysis and aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684020#M247940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; VIP, ITEM, QTY, TIME, ORDER&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 001, A, 1, 2014-01-01, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 001, C, 2, 2014-01-10, 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 001, D, 3, 2014-02-10, 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 001, B, 2, 2014-04-21, 4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 002, B, 3, 2014-02-13, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 002, B, 1, 2014-03-23, 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 003, A, 2, 2014-01-22, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 003, C, 1, 2014-03-01, 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 003, D, 4, 2014-03-10, 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 004, B, 3, 2014-02-21, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 004, A, 1, 2014-02-21, 1&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN(Data)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;VIP,&lt;/P&gt;&lt;P&gt;ITEM,&lt;/P&gt;&lt;P&gt;Min(TIME) AS TIME,&lt;/P&gt;&lt;P&gt;1 AS BMinFlag&lt;/P&gt;&lt;P&gt;RESIDENT Data&lt;/P&gt;&lt;P&gt;WHERE ITEM = 'B'&lt;/P&gt;&lt;P&gt;GROUP BY VIP, ITEM;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression : =Min({&amp;lt;BMinFlag={1}&amp;gt;}QTY)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 07:34:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684020#M247940</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-07-16T07:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to calulate the qty of the first purchase that bought specific item per vip?(set analysis and aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684021#M247941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Acutally like I said I don't want to modify the script in the backend, I just want to make it using dimension or expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So do you have any idea to solve that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 07:37:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684021#M247941</guid>
      <dc:creator>uacg0009</dc:creator>
      <dc:date>2014-07-16T07:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to calulate the qty of the first purchase that bought specific item per vip?(set analysis and aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684022#M247942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone can help me with that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 09:45:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684022#M247942</guid>
      <dc:creator>uacg0009</dc:creator>
      <dc:date>2014-07-16T09:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to calulate the qty of the first purchase that bought specific item per vip?(set analysis and aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684023#M247943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi there,&lt;/P&gt;&lt;P&gt;use the below exp&lt;/P&gt;&lt;P&gt;sum({&amp;lt;TIME={'=Aggr(DATE(min({&amp;lt;ITEM={"B"}&amp;gt;}TIME),"YYYY-MM-DD"),VIP,ITEM)'},ITEM={"B"}&amp;gt;}QTY)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i&amp;nbsp; am attached application c . &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; ..happy qliking&lt;/P&gt;&lt;P&gt;@premhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 15:49:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684023#M247943</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2014-07-16T15:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to calulate the qty of the first purchase that bought specific item per vip?(set analysis and aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684024#M247944</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;Using Aggr() will have performance issues, as far as I know calculating in script is the best choice, otherwise we have to do many calculations in front end, if the data is huge you can see the performance issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 01:56:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684024#M247944</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-07-17T01:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to calulate the qty of the first purchase that bought specific item per vip?(set analysis and aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684025#M247945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you so much! Your answer works in this example in my computer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there is a problem when I use the expression in real data, the result is strange, the calculation seems wrong. And I don't know why, because when I choose one vip, it is correct, but for all, it is a wrong result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my computer, the qlikview is 11.20 SR5, In my company computer(real data), the qlikview is 11.20 SR1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I don't know it is because of the version of qlikview or the big data reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea? Your version is ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 03:40:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684025#M247945</guid>
      <dc:creator>uacg0009</dc:creator>
      <dc:date>2014-07-17T03:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to calulate the qty of the first purchase that bought specific item per vip?(set analysis and aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684026#M247946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;same thing hapend to me long time before ...ok post some more sample data wrt. to your realtime data...or reduce it and post it...will see for any alternate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 16:10:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684026#M247946</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2014-07-17T16:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to calulate the qty of the first purchase that bought specific item per vip?(set analysis and aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684027#M247947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So...do you mean it is a bug?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or do we have any other idea to solve that with another expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 02:03:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684027#M247947</guid>
      <dc:creator>uacg0009</dc:creator>
      <dc:date>2014-07-18T02:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to calulate the qty of the first purchase that bought specific item per vip?(set analysis and aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684028#M247948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try the below exp ..slightly changed &lt;/P&gt;&lt;P&gt;sum({&amp;lt;TIME={'=Aggr(DATE(min({&amp;lt;ITEM={"B"}&amp;gt;}TIME),"YYYY-MM-DD"),VIP,ITEM)'}if(ITEM='B',QTY))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Jul 2014 07:31:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684028#M247948</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2014-07-19T07:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to calulate the qty of the first purchase that bought specific item per vip?(set analysis and aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684029#M247949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry for late reply and thanks for your answer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried your answer in Qlikview 11.20 SR5, in real data(big data) for one VIP is correct, for all vip it's wrong like last time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my data, there are 50,000 vips, but I think it is not because the number of vip, I think it is because in these vips' information, there are many date duplication. Like on 2014-01-10 maybe there are 100 vips bought the same thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I said above is just my guess, I haven't verify it. What do you think about it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And do you think we can add some statements or conditions to solve it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 04:27:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684029#M247949</guid>
      <dc:creator>uacg0009</dc:creator>
      <dc:date>2014-07-21T04:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to calulate the qty of the first purchase that bought specific item per vip?(set analysis and aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684030#M247950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone can help me with this problem??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 02:05:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684030#M247950</guid>
      <dc:creator>uacg0009</dc:creator>
      <dc:date>2014-07-22T02:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to calulate the qty of the first purchase that bought specific item per vip?(set analysis and aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684031#M247951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi there,&lt;/P&gt;&lt;P&gt;Sorry for late reply , these days am quit busy..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have tried using bookmark&lt;/P&gt;&lt;P&gt;steps:&lt;/P&gt;&lt;P&gt;clear all&lt;/P&gt;&lt;P&gt;1) take all the VIP ,ITEM,TIME list boxes and search the followng strings in that bookmark&lt;BR /&gt;search B in item and press enter&lt;BR /&gt;search =aggr(min(TIME),VIP,ITEM) in TIME and press enter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now add bookmark and say let bookmark name "ITEM_B_MINTIME"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now clear all and in expression add bookmark into current selection by folowing &lt;/P&gt;&lt;P&gt;sum({$*ITEM_B_MINTIME}QTY)&lt;/P&gt;&lt;P&gt;i have attached an application for you .&lt;/P&gt;&lt;P&gt;Hope this helps you atleast .. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 23:48:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684031#M247951</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2014-07-22T23:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to calulate the qty of the first purchase that bought specific item per vip?(set analysis and aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684032#M247952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi again , in my last reply you can also bookmark with trying the following string in all list boxes :&lt;/P&gt;&lt;P&gt;=Aggr(DATE(min({&amp;lt;ITEM={"B"}&amp;gt;}TIME),"YYYY-MM-DD"),VIP,ITEM)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 01:13:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684032#M247952</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2014-07-23T01:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to calulate the qty of the first purchase that bought specific item per vip?(set analysis and aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684033#M247953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for late reply, I have try the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Aggr(DATE(min({&amp;lt;ITEM={"B"}&amp;gt;}TIME),"YYYY-MM-DD"),VIP,ITEM)&lt;/SPAN&gt; expression in my real data, it's also for one vip is correct, but for all the vips the data will be wrong. Is that a performance issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 03:38:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684033#M247953</guid>
      <dc:creator>uacg0009</dc:creator>
      <dc:date>2014-07-25T03:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to calulate the qty of the first purchase that bought specific item per vip?(set analysis and aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684034#M247954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi u do one thing , reduce the data upto 1000 records&amp;nbsp; or&amp;nbsp; sample excel format of original backend table and scramble the data in doc settings and post here ..yu'll get quick answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 11:11:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684034#M247954</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2014-07-25T11:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to calulate the qty of the first purchase that bought specific item per vip?(set analysis and aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684035#M247955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know it been awhile but better late than never :&lt;/P&gt;&lt;P&gt;did you tried this in you chart : =FirstSortedValue({&amp;lt;ITEM={"B"}&amp;gt;}QTY, TIME)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2017 10:21:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684035#M247955</guid>
      <dc:creator>mambi</dc:creator>
      <dc:date>2017-11-10T10:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to calulate the qty of the first purchase that bought specific item per vip?(set analysis and aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684036#M247956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached &amp;lt;&amp;lt;&lt;SPAN style="color: #ff6600;"&gt;EDITED&lt;/SPAN&gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st:&lt;/P&gt;&lt;P&gt;min(TIME)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2nd&lt;/P&gt;&lt;P&gt;MIN(&amp;nbsp; {&amp;lt;ITEM={'B'}&amp;gt;} TIME)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3rd:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AGGR(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(TIME = min(TOTAL&amp;lt;VIP&amp;gt; {&amp;lt;ITEM={'B'}&amp;gt;}TIME) and ITEM='B' , QTY)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;,VIP,TIME,QTY)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/182818_Capture2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2017 11:01:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calulate-the-qty-of-the-first-purchase-that-bought/m-p/684036#M247956</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-11-10T11:01:11Z</dc:date>
    </item>
  </channel>
</rss>

