<?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 Not sure if I can use the AGGR function for this problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Not-sure-if-I-can-use-the-AGGR-function-for-this-problem/m-p/199795#M504053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a table with order details for individuals&lt;/P&gt;&lt;P&gt;The main fields for this problem are&lt;/P&gt;&lt;P&gt;Person Id&lt;/P&gt;&lt;P&gt;Order Date&lt;/P&gt;&lt;P&gt;I need to be able to count distinct Person Id where that Person has placed more than one Order in the last 12 months, for example using the data below, the answer would be 2&lt;/P&gt;&lt;P&gt;Person Order Date&lt;/P&gt;&lt;P&gt;123 03-jan-2009&lt;/P&gt;&lt;P&gt;123 06-jan-2009&lt;/P&gt;&lt;P&gt;345 07-jan-2009&lt;/P&gt;&lt;P&gt;345 08-jan-2009&lt;/P&gt;&lt;P&gt;456 02-jan-2009&lt;/P&gt;&lt;P&gt;567 11-feb-2009&lt;/P&gt;&lt;P&gt;567 19-jun-2009&lt;/P&gt;&lt;P&gt;I was wondering if I could use the AGGR function to do this? I never used it before - any advice would be most welcome.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jan 2010 20:35:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-04T20:35:32Z</dc:date>
    <item>
      <title>Not sure if I can use the AGGR function for this problem</title>
      <link>https://community.qlik.com/t5/QlikView/Not-sure-if-I-can-use-the-AGGR-function-for-this-problem/m-p/199795#M504053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a table with order details for individuals&lt;/P&gt;&lt;P&gt;The main fields for this problem are&lt;/P&gt;&lt;P&gt;Person Id&lt;/P&gt;&lt;P&gt;Order Date&lt;/P&gt;&lt;P&gt;I need to be able to count distinct Person Id where that Person has placed more than one Order in the last 12 months, for example using the data below, the answer would be 2&lt;/P&gt;&lt;P&gt;Person Order Date&lt;/P&gt;&lt;P&gt;123 03-jan-2009&lt;/P&gt;&lt;P&gt;123 06-jan-2009&lt;/P&gt;&lt;P&gt;345 07-jan-2009&lt;/P&gt;&lt;P&gt;345 08-jan-2009&lt;/P&gt;&lt;P&gt;456 02-jan-2009&lt;/P&gt;&lt;P&gt;567 11-feb-2009&lt;/P&gt;&lt;P&gt;567 19-jun-2009&lt;/P&gt;&lt;P&gt;I was wondering if I could use the AGGR function to do this? I never used it before - any advice would be most welcome.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2010 20:35:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-sure-if-I-can-use-the-AGGR-function-for-this-problem/m-p/199795#M504053</guid>
      <dc:creator />
      <dc:date>2010-01-04T20:35:32Z</dc:date>
    </item>
    <item>
      <title>Not sure if I can use the AGGR function for this problem</title>
      <link>https://community.qlik.com/t5/QlikView/Not-sure-if-I-can-use-the-AGGR-function-for-this-problem/m-p/199796#M504054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi dcroft,&lt;/P&gt;&lt;P&gt;Please, look into attachment.&lt;/P&gt;&lt;P&gt;You don't have to use AGGR function to achieve your goal.&lt;/P&gt;&lt;P&gt;For the condition "in the last 12 months" you can use set analysis in the COUNT function.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Janusz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2010 20:48:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-sure-if-I-can-use-the-AGGR-function-for-this-problem/m-p/199796#M504054</guid>
      <dc:creator />
      <dc:date>2010-01-04T20:48:11Z</dc:date>
    </item>
    <item>
      <title>Not sure if I can use the AGGR function for this problem</title>
      <link>https://community.qlik.com/t5/QlikView/Not-sure-if-I-can-use-the-AGGR-function-for-this-problem/m-p/199797#M504055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for getting back to me.&lt;/P&gt;&lt;P&gt;Sorry but I don't understand - that seems to give a person id along with a count if they have placed at least one order in the qualifying period.&lt;/P&gt;&lt;P&gt;So for example, Person 123 should not be included in the count.&lt;/P&gt;&lt;P&gt;Is it possible you could give me a bit more detail?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2010 21:01:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-sure-if-I-can-use-the-AGGR-function-for-this-problem/m-p/199797#M504055</guid>
      <dc:creator />
      <dc:date>2010-01-04T21:01:49Z</dc:date>
    </item>
    <item>
      <title>Not sure if I can use the AGGR function for this problem</title>
      <link>https://community.qlik.com/t5/QlikView/Not-sure-if-I-can-use-the-AGGR-function-for-this-problem/m-p/199798#M504056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please, take a look into attachment.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Janusz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2010 21:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-sure-if-I-can-use-the-AGGR-function-for-this-problem/m-p/199798#M504056</guid>
      <dc:creator />
      <dc:date>2010-01-04T21:26:18Z</dc:date>
    </item>
    <item>
      <title>Not sure if I can use the AGGR function for this problem</title>
      <link>https://community.qlik.com/t5/QlikView/Not-sure-if-I-can-use-the-AGGR-function-for-this-problem/m-p/199799#M504057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;It may not be the best way to do it but it seems to work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;=Sum(Aggr(If(Count({&amp;lt;DATE = {"&amp;gt;=$(=AddMonths(Today(), -12))"}&amp;gt;} PERSONID)&amp;gt;1, 1), PERSONID))&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2010 21:36:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-sure-if-I-can-use-the-AGGR-function-for-this-problem/m-p/199799#M504057</guid>
      <dc:creator>dvasseur</dc:creator>
      <dc:date>2010-01-04T21:36:54Z</dc:date>
    </item>
    <item>
      <title>Not sure if I can use the AGGR function for this problem</title>
      <link>https://community.qlik.com/t5/QlikView/Not-sure-if-I-can-use-the-AGGR-function-for-this-problem/m-p/199800#M504058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, didn't see Janusz new reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2010 21:40:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-sure-if-I-can-use-the-AGGR-function-for-this-problem/m-p/199800#M504058</guid>
      <dc:creator>dvasseur</dc:creator>
      <dc:date>2010-01-04T21:40:51Z</dc:date>
    </item>
  </channel>
</rss>

