<?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 formula in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-count-formula/m-p/525443#M480659</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try this expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count({&amp;lt;Customer = {"=sum({&amp;lt;ProductCategory = {'*A*'}&amp;gt;}Sale)&amp;gt;$(vTest)"}&amp;gt;}DISTINCT Customer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Nov 2013 10:41:16 GMT</pubDate>
    <dc:creator>kaushiknsolanki</dc:creator>
    <dc:date>2013-11-14T10:41:16Z</dc:date>
    <item>
      <title>set analysis count formula</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-count-formula/m-p/525439#M480655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently trying to build an expression for a pivot table.&lt;/P&gt;&lt;P&gt;In this table, I want to display the number of customers, which have a sales volume above a certain level and for a specific product group only.&lt;/P&gt;&lt;P&gt;The background data would look like following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Customer&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Product Category&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Sale&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Customer 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;300&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Customer 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;400&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Customer 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Customer 2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Customer 2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;600&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Customer 3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The counter should now display e.g. the number of customers, which have an (aggregated) sales volume above 500 for product category A only.&lt;/P&gt;&lt;P&gt;So in this context, the result of that counter would be 2 (customer 1 having a total sales volume of 700 for category A and Customer 3 with an amount of 1000 for A).&lt;/P&gt;&lt;P&gt;The difficulty I see is, how to create a count formula with a nested sum or aggr formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know, how to set up a formula for that purpose?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 10:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-count-formula/m-p/525439#M480655</guid>
      <dc:creator />
      <dc:date>2013-11-14T10:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis count formula</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-count-formula/m-p/525440#M480656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr(count(Customer),Customer,ProductCategory)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 10:18:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-count-formula/m-p/525440#M480656</guid>
      <dc:creator />
      <dc:date>2013-11-14T10:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis count formula</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-count-formula/m-p/525441#M480657</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Have a look at the application attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 10:19:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-count-formula/m-p/525441#M480657</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-11-14T10:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis count formula</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-count-formula/m-p/525442#M480658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for that quick proposal.&lt;/P&gt;&lt;P&gt;This already goes into the right direction.&lt;/P&gt;&lt;P&gt;I tried to modify the formula used in your application, to explicitely set the sales amount level to 500 (instead of using a dynamic input box).&lt;/P&gt;&lt;P&gt;Further more, I would like to count the customers for category A only (independent from a selection).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I modified the formula towards this syntax:&lt;/P&gt;&lt;P&gt;count({&amp;lt;Customer = {'=sum(Sale)&amp;gt;=500'}, [Product Category]={A}&amp;gt;}DISTINCT Customer)&lt;/P&gt;&lt;P&gt;The sales amount modification works however, restricting the counter to product category A only, does not work yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea, what needs to be adjusted to make the counter independent from the product argument selection and count only the customers for category A?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 10:34:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-count-formula/m-p/525442#M480658</guid>
      <dc:creator />
      <dc:date>2013-11-14T10:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis count formula</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-count-formula/m-p/525443#M480659</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try this expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count({&amp;lt;Customer = {"=sum({&amp;lt;ProductCategory = {'*A*'}&amp;gt;}Sale)&amp;gt;$(vTest)"}&amp;gt;}DISTINCT Customer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 10:41:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-count-formula/m-p/525443#M480659</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-11-14T10:41:16Z</dc:date>
    </item>
  </channel>
</rss>

