<?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: aggregation issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-aggregation-issue/m-p/738481#M473874</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Count(DISTINCT {&amp;lt;uniquetradeid=P({&amp;lt;Type={'E'}&amp;gt;})&amp;gt;-&amp;lt;uniquetradeid=P({&amp;lt;Type={'V'}&amp;gt;})&amp;gt;} uniquetradeid)&lt;/P&gt;&lt;P&gt;=Count(DISTINCT {&amp;lt;uniquetradeid=P({&amp;lt;Type={'V'}&amp;gt;})&amp;gt;-&amp;lt;uniquetradeid=P({&amp;lt;Type={'E'}&amp;gt;})&amp;gt;} uniquetradeid)&lt;/P&gt;&lt;P&gt;=Count(DISTINCT {&amp;lt;uniquetradeid=P({&amp;lt;Type={'E'}&amp;gt;})&amp;gt;*&amp;lt;uniquetradeid=P({&amp;lt;Type={'V'}&amp;gt;})&amp;gt;} uniquetradeid)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Oct 2014 10:48:27 GMT</pubDate>
    <dc:creator>anbu1984</dc:creator>
    <dc:date>2014-10-16T10:48:27Z</dc:date>
    <item>
      <title>Set Analysis: aggregation issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-aggregation-issue/m-p/738480#M473873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 148px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="84"&gt;uniquetradeid&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Type&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;11&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;V&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;12&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;V&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;11&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;V&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;13&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;V&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;13&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;V&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;15&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;V&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;15&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;V&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;15&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;V&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;16&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;V&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;17&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;E&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;17&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;V&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to translate the following to set analysis so that I can represent this in both text boxes and graphically:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;E = distinct count of uniquetradeid which has no V in another row with the same uniquetradeid.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;V = distinct count of uniquetradeid which has no E in another row &lt;STRONG&gt;with the same uniquetradeid&lt;/STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;H = distinct count of uniquetradeid which includes both E AND V in its rows.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So in the example, the results should be&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;E=0,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;V= 5,&lt;/P&gt;&lt;P&gt;H=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get this with set analysis both in text box and graphically? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 10:38:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-aggregation-issue/m-p/738480#M473873</guid>
      <dc:creator>sifatnabil</dc:creator>
      <dc:date>2014-10-16T10:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: aggregation issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-aggregation-issue/m-p/738481#M473874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Count(DISTINCT {&amp;lt;uniquetradeid=P({&amp;lt;Type={'E'}&amp;gt;})&amp;gt;-&amp;lt;uniquetradeid=P({&amp;lt;Type={'V'}&amp;gt;})&amp;gt;} uniquetradeid)&lt;/P&gt;&lt;P&gt;=Count(DISTINCT {&amp;lt;uniquetradeid=P({&amp;lt;Type={'V'}&amp;gt;})&amp;gt;-&amp;lt;uniquetradeid=P({&amp;lt;Type={'E'}&amp;gt;})&amp;gt;} uniquetradeid)&lt;/P&gt;&lt;P&gt;=Count(DISTINCT {&amp;lt;uniquetradeid=P({&amp;lt;Type={'E'}&amp;gt;})&amp;gt;*&amp;lt;uniquetradeid=P({&amp;lt;Type={'V'}&amp;gt;})&amp;gt;} uniquetradeid)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 10:48:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-aggregation-issue/m-p/738481#M473874</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-10-16T10:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: aggregation issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-aggregation-issue/m-p/738482#M473875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=COUNT({&amp;lt;Type = {'E'}, uniquetradeid = E({1&amp;lt;Type = {'V'}&amp;gt;})&amp;gt;}Distinct uniquetradeid)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=COUNT({&amp;lt;Type = {'V'}, uniquetradeid = E({1&amp;lt;Type = {'E'}&amp;gt;})&amp;gt;}Distinct uniquetradeid)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=COUNT({&amp;lt;Type = {'E'}, uniquetradeid = P({1&amp;lt;Type = {'V'}&amp;gt;})&amp;gt;}Distinct uniquetradeid)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 10:49:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-aggregation-issue/m-p/738482#M473875</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-10-16T10:49:00Z</dc:date>
    </item>
  </channel>
</rss>

