<?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: Count of all compared with count based on selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-of-all-compared-with-count-based-on-selection/m-p/734169#M475728</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks but that is just giving me the same value for each of the expressions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jul 2014 13:12:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-07-08T13:12:50Z</dc:date>
    <item>
      <title>Count of all compared with count based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-all-compared-with-count-based-on-selection/m-p/734165#M475724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to measure product penetration among a client base by comparing total number of clients and number of clients holding 'X' where X is selected dynamically. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In tabular format, I need the output to look something like the following: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="260"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="64"&gt;Banker&lt;/TD&gt;&lt;TD class="xl63" width="79"&gt;Total Clients&lt;/TD&gt;&lt;TD class="xl63" width="117"&gt;# Clients Holding X&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17"&gt;A&lt;/TD&gt;&lt;TD align="right"&gt;25&lt;/TD&gt;&lt;TD align="right"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17"&gt;B&lt;/TD&gt;&lt;TD align="right"&gt;12&lt;/TD&gt;&lt;TD align="right"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17"&gt;C&lt;/TD&gt;&lt;TD align="right"&gt;31&lt;/TD&gt;&lt;TD align="right"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17"&gt;D&lt;/TD&gt;&lt;TD align="right"&gt;11&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17"&gt;E&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17"&gt;F&lt;/TD&gt;&lt;TD align="right"&gt;70&lt;/TD&gt;&lt;TD align="right"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the thing that is making this tricky is that I want X to be dynamic. I have a list box with stock names in it, e.g. Apple, Google, Microsoft. When I select one of these values, I want the #clients holding X to update but total clients will always be the same. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been experimenting using Count(Clients) for 'clients holding X' and Count(TOTAL Clients) for all clients but I am getting the same number for total clients for all Bankers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I experimented with AGGR function but could not get this to produce the correct number either. I have a feeling this is a simple solution but I am drawing a blank... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 12:37:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-all-compared-with-count-based-on-selection/m-p/734165#M475724</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-08T12:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Count of all compared with count based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-all-compared-with-count-based-on-selection/m-p/734166#M475725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this if you select only one stock:&lt;/P&gt;&lt;P&gt;count({&amp;lt;StockName={'$(=only(StockName))'}&amp;gt;} distinct Clients)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 12:46:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-all-compared-with-count-based-on-selection/m-p/734166#M475725</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-07-08T12:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Count of all compared with count based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-all-compared-with-count-based-on-selection/m-p/734167#M475726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like:&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;Clients&amp;gt;} Clients)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // first expression for Total&lt;/P&gt;&lt;P&gt;=Count(Clients)&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // second expr for count based on selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 12:50:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-all-compared-with-count-based-on-selection/m-p/734167#M475726</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-07-08T12:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Count of all compared with count based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-all-compared-with-count-based-on-selection/m-p/734168#M475727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert. With only 1 security selected I am still not getting the result I expect. Plus I would ultimately need to be able to select multiple securities as our naming in DB is not always great (e.g. might have Apple A, Apple B for example).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the code above is giving me a '0' value in each field even with only 1 selection for stock. Any other thoughts on how to do it? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 12:52:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-all-compared-with-count-based-on-selection/m-p/734168#M475727</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-08T12:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Count of all compared with count based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-all-compared-with-count-based-on-selection/m-p/734169#M475728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks but that is just giving me the same value for each of the expressions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 13:12:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-all-compared-with-count-based-on-selection/m-p/734169#M475728</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-08T13:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Count of all compared with count based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-all-compared-with-count-based-on-selection/m-p/734170#M475729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That would give same values for both expressions only when there is no selection in the Clients field, otherwise, select a client value and see - it should give as you wanted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 13:16:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-all-compared-with-count-based-on-selection/m-p/734170#M475729</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-07-08T13:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Count of all compared with count based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-all-compared-with-count-based-on-selection/m-p/734171#M475730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry - not what I am seeing here. Values are the same regardless of a single selection or not. The absolute result value is changing, but both expressions have same value. Looks like this is working for the selected value but the 'total clients' value is not fixing at total number of clients for each banker. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 13:33:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-all-compared-with-count-based-on-selection/m-p/734171#M475730</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-08T13:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Count of all compared with count based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-all-compared-with-count-based-on-selection/m-p/734172#M475731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I have got it - &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count({&amp;lt;Clients&amp;gt;} Clients)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // first expression for Total&lt;/SPAN&gt; : this should actually be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count({&amp;lt;HOLDING&amp;gt;} Clients)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;This seems to be returning me the correct results. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Many thanks! &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 13:37:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-all-compared-with-count-based-on-selection/m-p/734172#M475731</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-08T13:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Count of all compared with count based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-all-compared-with-count-based-on-selection/m-p/734173#M475732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/154676"&gt;Ben Roberts&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using the following syntax on the Total Clients Column:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;Clients=&amp;gt;} Clients)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 13:40:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-all-compared-with-count-based-on-selection/m-p/734173#M475732</guid>
      <dc:creator>matthewjbryant</dc:creator>
      <dc:date>2014-07-08T13:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Count of all compared with count based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-all-compared-with-count-based-on-selection/m-p/734174#M475733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks - tried that too but did not work. Key must be use of the description field rather than client field in that expression. I have it working now. Many thanks all for help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 13:45:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-all-compared-with-count-based-on-selection/m-p/734174#M475733</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-08T13:45:05Z</dc:date>
    </item>
  </channel>
</rss>

