<?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 Count Profitable Customers in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-Profitable-Customers/m-p/225207#M77544</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it does, thanks Johannes.&lt;/P&gt;&lt;P&gt;John H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Oct 2009 11:38:17 GMT</pubDate>
    <dc:creator>johnhorneramllp</dc:creator>
    <dc:date>2009-10-27T11:38:17Z</dc:date>
    <item>
      <title>Count Profitable Customers</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Profitable-Customers/m-p/225205#M77542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to count customers only if they are profitable and am having some difficulty getting this to work as i think it should. The attached file highlights my current problem, Table 4 should show 3 profitable customers for 1/1/2009 and not 5.&lt;/P&gt;&lt;P&gt;Any thoughts would be greatly appreciated.&lt;/P&gt;&lt;P&gt;John H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 10:57:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Profitable-Customers/m-p/225205#M77542</guid>
      <dc:creator>johnhorneramllp</dc:creator>
      <dc:date>2009-10-27T10:57:47Z</dc:date>
    </item>
    <item>
      <title>Count Profitable Customers</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Profitable-Customers/m-p/225206#M77543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;Try changing the second expression in Table 4 to:&lt;/P&gt;&lt;P&gt;Count(DISTINCT aggr(If(Sum(Margin) &amp;gt; 0,Customer), Date, Customer))&lt;/P&gt;&lt;P&gt;If I understand the problem you have correctly then we need to calculate the Sum(Margin) per Date and Customer and add these up instead of just looking at the Date as all customers had transactions that date so the count will be 5 if the Sum(Margin)&amp;gt;0 for the whole lot of them. Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 11:28:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Profitable-Customers/m-p/225206#M77543</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-27T11:28:17Z</dc:date>
    </item>
    <item>
      <title>Count Profitable Customers</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Profitable-Customers/m-p/225207#M77544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it does, thanks Johannes.&lt;/P&gt;&lt;P&gt;John H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 11:38:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Profitable-Customers/m-p/225207#M77544</guid>
      <dc:creator>johnhorneramllp</dc:creator>
      <dc:date>2009-10-27T11:38:17Z</dc:date>
    </item>
    <item>
      <title>Count Profitable Customers</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Profitable-Customers/m-p/225208#M77545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could this also be done using set analysis and would this be less expensive from a performance perspective?&lt;/P&gt;&lt;P&gt;John H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 11:47:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Profitable-Customers/m-p/225208#M77545</guid>
      <dc:creator>johnhorneramllp</dc:creator>
      <dc:date>2009-10-27T11:47:05Z</dc:date>
    </item>
    <item>
      <title>Count Profitable Customers</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Profitable-Customers/m-p/225209#M77546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, thanks to Johannes last night i managed to get a solution for my profitable customers. However the use of the below statement is proving too slow to implement. Given the many discussions surrounding performance and Set Analysis on this Forum i am suspecting that using Set Analysis may be a more efficient answer...can the below be translated into a Set Analysis expression? I know i could create an aggregated table of the data i require for the specific chart but i would like the chart to be dynamic with the whole of the data model, so that if a user selects a product the chart should then show profitable customers for that product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;STRONG&gt;Sum&lt;/STRONG&gt;(&lt;B&gt;aggr&lt;/B&gt;(&lt;B&gt;If&lt;/B&gt;(&lt;B&gt;Sum&lt;/B&gt;(&lt;B&gt;[Pocket Margin]&lt;/B&gt;) &amp;gt; 0, &lt;B&gt;[Customer Counter]&lt;/B&gt;), &lt;B&gt;[Fiscal Month]&lt;/B&gt;, &lt;B&gt;[Customer ID]&lt;/B&gt;))&lt;/P&gt;&lt;P&gt;Much appreciated.&lt;/P&gt;&lt;P&gt;John H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 21:35:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Profitable-Customers/m-p/225209#M77546</guid>
      <dc:creator>johnhorneramllp</dc:creator>
      <dc:date>2009-10-27T21:35:38Z</dc:date>
    </item>
  </channel>
</rss>

