<?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 with aggregated function? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-aggregated-function/m-p/1302071#M616603</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Done &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Jun 2017 13:23:09 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-06-02T13:23:09Z</dc:date>
    <item>
      <title>Set Analysis with aggregated function?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-aggregated-function/m-p/1302068#M616598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table of customers who have bought things, and some of whom have returned things for a refund.&amp;nbsp; I want to count the number of customers who have a net positive transaction value;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Row Number&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Transaction Value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerA&amp;nbsp;&amp;nbsp;&amp;nbsp; $1000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerA&amp;nbsp;&amp;nbsp;&amp;nbsp; -$1000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer B&amp;nbsp;&amp;nbsp;&amp;nbsp; $500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should give the answer "One Customer"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(Distinct {&amp;lt;[Transaction Value] = {"&amp;gt;0"}&amp;gt;} [Customer] ) &lt;/STRONG&gt;will give the answer "2" because it will count Row 1 &amp;amp; Row 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Count(Distinct {&amp;lt;Aggr (Sum ([Transaction Value])) = {"&amp;gt;0"}&amp;gt;} [Customer] ) &lt;/STRONG&gt;&lt;/SPAN&gt;but that gives an error in the formula editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried, &lt;STRONG&gt;Count(Distinct {&amp;lt;'Sum ([&lt;STRONG style="font-size: 13.3333px;"&gt;Transaction Value&lt;/STRONG&gt;]) &amp;gt;0'&amp;gt;} [&lt;STRONG style="font-size: 13.3333px;"&gt;Customer&lt;/STRONG&gt;] )&lt;/STRONG&gt; which is accepted, but gives the wrong answer (I think it just counts all records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clues???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 13:04:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-aggregated-function/m-p/1302068#M616598</guid>
      <dc:creator>quriouss</dc:creator>
      <dc:date>2017-06-02T13:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with aggregated function?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-aggregated-function/m-p/1302069#M616599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;Customer = {"=Sum([Transaction Value]) &amp;gt;0"}&amp;gt;} Customer)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 13:12:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-aggregated-function/m-p/1302069#M616599</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-02T13:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with aggregated function?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-aggregated-function/m-p/1302070#M616601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That works a treat, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 13:21:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-aggregated-function/m-p/1302070#M616601</guid>
      <dc:creator>quriouss</dc:creator>
      <dc:date>2017-06-02T13:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with aggregated function?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-aggregated-function/m-p/1302071#M616603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Done &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 13:23:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-aggregated-function/m-p/1302071#M616603</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-02T13:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with aggregated function?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-aggregated-function/m-p/1649456#M616604</link>
      <description>&lt;P&gt;what if i want a range here e.g my expression is:&amp;nbsp;Count(DISTINCT {&amp;lt;[KYSC.FLOAT_DAY] = {"=AVG([KYSC.FLOAT_DAY])&amp;gt;=0"}&amp;gt;} [KYSC_SALE_CHNL_CD])&lt;/P&gt;&lt;P&gt;also does it work with avg?&lt;/P&gt;&lt;P&gt;my range is&amp;nbsp;AVG([KYSC.FLOAT_DAY])&amp;gt;=0&amp;lt;1.&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;Wajiha&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 08:28:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-aggregated-function/m-p/1649456#M616604</guid>
      <dc:creator>wajiha</dc:creator>
      <dc:date>2019-11-21T08:28:08Z</dc:date>
    </item>
  </channel>
</rss>

