<?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 Combined set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Combined-set-analysis/m-p/868442#M303712</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hello&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;We have a simple set analysis as attached.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/84143_pastedImage_0.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;We would like to count in expression 1 : client with CA in 2015 &amp;gt; 300. Work well !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;In expression 2 : we would like to count client with CA in 2015 &amp;gt; 300 &lt;STRONG&gt;and&lt;/STRONG&gt; CA in 2013 &amp;lt; 2000. In that case, &lt;STRONG&gt;only Client Pierre is concerned as&lt;/STRONG&gt; Client Jean has a CA = 300 in 2015. He should be excluded into the count calculation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I use this set analysis below for expression 2, but not working....client jean is not concerned. Could you help me ? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=count({$&amp;lt;[Client]={"=Sum({$&amp;lt;Année = {2015}&amp;gt;} [CA] ) &amp;gt; 300"},[Client]={"=Sum({$&amp;lt;Année = {2013}&amp;gt;} [CA] ) &amp;lt; 2000"}&amp;gt;}distinct [Client] ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG alt="" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/84145_pastedImage_4.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks a lot&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Apr 2015 14:14:35 GMT</pubDate>
    <dc:creator>alex59800</dc:creator>
    <dc:date>2015-04-20T14:14:35Z</dc:date>
    <item>
      <title>Combined set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Combined-set-analysis/m-p/868442#M303712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hello&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;We have a simple set analysis as attached.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/84143_pastedImage_0.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;We would like to count in expression 1 : client with CA in 2015 &amp;gt; 300. Work well !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;In expression 2 : we would like to count client with CA in 2015 &amp;gt; 300 &lt;STRONG&gt;and&lt;/STRONG&gt; CA in 2013 &amp;lt; 2000. In that case, &lt;STRONG&gt;only Client Pierre is concerned as&lt;/STRONG&gt; Client Jean has a CA = 300 in 2015. He should be excluded into the count calculation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I use this set analysis below for expression 2, but not working....client jean is not concerned. Could you help me ? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=count({$&amp;lt;[Client]={"=Sum({$&amp;lt;Année = {2015}&amp;gt;} [CA] ) &amp;gt; 300"},[Client]={"=Sum({$&amp;lt;Année = {2013}&amp;gt;} [CA] ) &amp;lt; 2000"}&amp;gt;}distinct [Client] ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG alt="" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/84145_pastedImage_4.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks a lot&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 14:14:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combined-set-analysis/m-p/868442#M303712</guid>
      <dc:creator>alex59800</dc:creator>
      <dc:date>2015-04-20T14:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Combined set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Combined-set-analysis/m-p/868443#M303713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Expression 1&lt;/P&gt;&lt;P&gt;=COUNT(DISTINCT {&amp;lt;Client = {"=SUM({&amp;lt;Année = {'$(=Max(Année))'}&amp;gt;}CA)&amp;gt;300"}&amp;gt;}Client)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression 2&lt;/P&gt;&lt;P&gt;=COUNT(DISTINCT {&amp;lt;Client = {"=SUM({&amp;lt;Année = {'$(=Max(Année))'}&amp;gt;}CA)&amp;gt;300"}&amp;gt;*&amp;lt;Client = {"=SUM({&amp;lt;Année = {'$(=Max(Année)-2)'}&amp;gt;}CA)&amp;lt;2000"}&amp;gt;}Client)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can fix Max(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Année) by Max({1}&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Année)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 14:26:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combined-set-analysis/m-p/868443#M303713</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-04-20T14:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Combined set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Combined-set-analysis/m-p/868444#M303714</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 think this expression work :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count ( {$&amp;lt;[Client] = {"=Sum({$&amp;lt;Année = {2015}&amp;gt;}CA ) &amp;gt; 300 and Sum({$&amp;lt;Année = {2013}&amp;gt;}CA) &amp;lt; 2000"} &amp;gt;} distinct [Client] )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 14:28:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combined-set-analysis/m-p/868444#M303714</guid>
      <dc:creator>Aurelien_Martinez</dc:creator>
      <dc:date>2015-04-20T14:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Combined set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Combined-set-analysis/m-p/868445#M303715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Manish&lt;/P&gt;&lt;P&gt;Seem to work well ! Thank you.&lt;/P&gt;&lt;P&gt;Why do you substitute Année by a variable $(=Max(Année)) ? Is there any interest or can i simply use 2015 and 2013 in your formula ? It seems to work also.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 14:36:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combined-set-analysis/m-p/868445#M303715</guid>
      <dc:creator>alex59800</dc:creator>
      <dc:date>2015-04-20T14:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Combined set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Combined-set-analysis/m-p/868446#M303716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;because 2015 is the maximum date... Using the same application, if you want to compare 2016 and 2014 next year, you don't need to change the formula... But if you hard code it, you need to change it again..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depends on what your requirement is !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 14:57:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combined-set-analysis/m-p/868446#M303716</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-04-20T14:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Combined set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Combined-set-analysis/m-p/868447#M303717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok thanks a lot.&lt;/P&gt;&lt;P&gt;One last question : what happen if i have no record in databasis for a client and i would like to know if it's a new client.&lt;/P&gt;&lt;P&gt;Example : Client Arthur is not existing at all before 2015 and just has an occurence in 2015.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=COUNT(DISTINCT {&amp;lt;Client = {"=SUM({&amp;lt;Année = {2015}&amp;gt;}CA)&amp;gt;0"}&amp;gt;*&amp;lt;Client = {"=SUM({&amp;lt;Année = {2013,2014}&amp;gt;}CA))=0"}&amp;gt;}Client)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not working because no records for this client in 2013 and 2014. I tried to find out something with isnull in this set analysis but not found. If you have an idea would be great !&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 15:39:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combined-set-analysis/m-p/868447#M303717</guid>
      <dc:creator>alex59800</dc:creator>
      <dc:date>2015-04-20T15:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Combined set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Combined-set-analysis/m-p/868448#M303718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to assign each client with each year (i.e. Annee) in script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 18:57:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combined-set-analysis/m-p/868448#M303718</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-04-20T18:57:12Z</dc:date>
    </item>
  </channel>
</rss>

