<?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: Complex set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Complex-set-analysis/m-p/540736#M557252</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make set analysis for the customers that made first order 2 months prior, &lt;/P&gt;&lt;P&gt;Make set analysis of customers that made minimum 2 orders in prior 2 months,&lt;/P&gt;&lt;P&gt;Take the intersection of those 2 set analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jul 2013 14:01:06 GMT</pubDate>
    <dc:creator>calvindk</dc:creator>
    <dc:date>2013-07-04T14:01:06Z</dc:date>
    <item>
      <title>Complex set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-set-analysis/m-p/540733#M557249</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 need help with an advanced set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to show customers that made their first order 2 month from the month that is selected. The customer must also had made at least 2 orders within this period, from the month selected and to 2 months back. This Set analysis doesnt work. Is it possible to solve this without using If?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;CustomerId={"=Aggr(Sum({$&amp;lt;YearMonth={'&amp;gt;=$(=Date(AddMonths(Max(YearMonth),-2), 'YYYY-MM'))&amp;lt;=$(=Max(YearMonth))'}&amp;gt;}OrderCounter),CustomerId)&amp;gt;1"}, FirstOrder={"$(=Date(AddMonths(Max(YearMonth),-2), 'YYYY-MM'))"}, YearMonth&amp;gt;}CustomerCounter)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 11:09:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-set-analysis/m-p/540733#M557249</guid>
      <dc:creator />
      <dc:date>2013-07-04T11:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Complex set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-set-analysis/m-p/540734#M557250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;can you just post Sample qvw with the Data and Sample Output you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 11:40:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-set-analysis/m-p/540734#M557250</guid>
      <dc:creator />
      <dc:date>2013-07-04T11:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Complex set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-set-analysis/m-p/540735#M557251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure how you'd do this all within set analysis.&amp;nbsp; I came up with the following expression, obviously I'm using an If statement but if it works...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if( AGGR( min(_MonthSerial) ,Customer) &amp;gt;=$(=Max(_MonthSerial)-1) and &lt;/P&gt;&lt;P&gt;AGGR( min(_MonthSerial) ,Customer) &amp;lt;=$(=Max(_MonthSerial)),1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 13:35:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-set-analysis/m-p/540735#M557251</guid>
      <dc:creator>RedSky001</dc:creator>
      <dc:date>2013-07-04T13:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Complex set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-set-analysis/m-p/540736#M557252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make set analysis for the customers that made first order 2 months prior, &lt;/P&gt;&lt;P&gt;Make set analysis of customers that made minimum 2 orders in prior 2 months,&lt;/P&gt;&lt;P&gt;Take the intersection of those 2 set analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 14:01:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-set-analysis/m-p/540736#M557252</guid>
      <dc:creator>calvindk</dc:creator>
      <dc:date>2013-07-04T14:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Complex set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-set-analysis/m-p/540737#M557253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all the response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anders, you mean something like this? Cant get it to work. Maybe I should use an if-statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(&lt;/P&gt;&lt;P&gt;{$&lt;/P&gt;&lt;P&gt;&amp;lt;FirstOrder={"$(=Date(AddMonths(Max(YearMonth),-2), 'YYYY-MM'))"}, YearMonth&amp;gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&amp;lt;CustomerId={"=Aggr(Sum({$&amp;lt;YearMonth={"&amp;gt;=$(=Date(AddMonths(Max(YearMonth),-2), 'YYYY-MM'))&amp;lt;=$(=Max(YearMonth))"}&amp;gt;}OrderCounter),CustomerId)&amp;gt;1"}&amp;gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;CustomerCounter)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 14:24:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-set-analysis/m-p/540737#M557253</guid>
      <dc:creator />
      <dc:date>2013-07-04T14:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Complex set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-set-analysis/m-p/540738#M557254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes something like that. Do the 2 sets work individually? It looks like the syntax is a bit off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But then again, and if sentence will work, its just slower. &lt;/P&gt;&lt;P&gt;If you have a lot of data or feel the performance take a hit, then work some more on intersection, else just go with if?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 14:57:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-set-analysis/m-p/540738#M557254</guid>
      <dc:creator>calvindk</dc:creator>
      <dc:date>2013-07-04T14:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Complex set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-set-analysis/m-p/540739#M557255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's something wrong with the second set analysis. Well, I will use If-statement. Thanks anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 13:51:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-set-analysis/m-p/540739#M557255</guid>
      <dc:creator />
      <dc:date>2013-07-05T13:51:25Z</dc:date>
    </item>
  </channel>
</rss>

