<?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: Set Analysis Count Excluded Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-Excluded-Problem/m-p/404129#M150342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe along these lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(aggr(if(count({&amp;lt;Distributor&amp;gt;} distinct Distributor)=1,1), YearWeek, Reseller))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Dec 2012 15:49:10 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-12-06T15:49:10Z</dc:date>
    <item>
      <title>Set Analysis Count Excluded Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-Excluded-Problem/m-p/404126#M150339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="im" style="color: #500050; font-family: arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: #333333;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="im" style="color: #500050; font-family: arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: #333333;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="im" style="color: #500050; font-family: arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: #333333;"&gt;I’ve been having some trouble with an expression using set analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list of distributors and their resellers for each YearWeek.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a pivot table, when a distributor is selected, I need to count the exclusive Resellers of the selected Distributor. So with YearWeek as a dimension, I tried counting Reseller and then subtracting the ones in common with the excluded:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;Reseller&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;) - &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;Reseller&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;P&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;Distributor&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;E&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;Distributor&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;)&amp;gt;})&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;Reseller&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this is not giving the correct count for each YearWeek. I only get the right count for a YearWeek when I select it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 12:48:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-Excluded-Problem/m-p/404126#M150339</guid>
      <dc:creator>FVenthakone</dc:creator>
      <dc:date>2012-12-04T12:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Count Excluded Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-Excluded-Problem/m-p/404127#M150340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Felix,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the set analysis will only be evaluated once per chart, it will not consider your dimension values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you upload a small sample that demonstrate your issue and setup?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 13:21:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-Excluded-Problem/m-p/404127#M150340</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-12-04T13:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Count Excluded Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-Excluded-Problem/m-p/404128#M150341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. I've attached an example qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I select a Distributor e.g. Sweden, I want to get the count of resellers exclusive to Sweden. For W1-10, the count of exclusive resellers for Sweden is 58, but in the pivot table I get 10. I only get 58 when I select W1-10 as YearWeek.&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, 06 Dec 2012 15:10:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-Excluded-Problem/m-p/404128#M150341</guid>
      <dc:creator>FVenthakone</dc:creator>
      <dc:date>2012-12-06T15:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Count Excluded Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-Excluded-Problem/m-p/404129#M150342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe along these lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(aggr(if(count({&amp;lt;Distributor&amp;gt;} distinct Distributor)=1,1), YearWeek, Reseller))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 15:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-Excluded-Problem/m-p/404129#M150342</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-12-06T15:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Count Excluded Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-Excluded-Problem/m-p/404130#M150343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks swuehl, that's exactly what I wanted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 09:37:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-Excluded-Problem/m-p/404130#M150343</guid>
      <dc:creator>FVenthakone</dc:creator>
      <dc:date>2012-12-11T09:37:24Z</dc:date>
    </item>
  </channel>
</rss>

