<?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 Function - only look at selection? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-Function-only-look-at-selection/m-p/687262#M248986</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=count({$&amp;lt;Leg={"Allocation"}&amp;gt;}DISTINCT [Trade ID])&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp; &lt;/SPAN&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;&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;What is your requirement? Not clear from your question.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Jul 2014 08:52:38 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2014-07-01T08:52:38Z</dc:date>
    <item>
      <title>Count Function - only look at selection?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Function-only-look-at-selection/m-p/687261#M248985</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;From what I understand, &lt;STRONG&gt;=count({$&amp;lt;Leg={"Allocation"}&amp;gt;}[Trade ID])&lt;/STRONG&gt;&amp;nbsp; should only be looking at the current selection, right? However, adding a Leg listbox in and filtering out all Allocation trades, it still shows 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I honestly can't share any data and I would only prepare an extract if really required - have ever seen this sort of problem though and are there some easy things to look at first maybe?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 08:51:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Function-only-look-at-selection/m-p/687261#M248985</guid>
      <dc:creator />
      <dc:date>2014-07-01T08:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Count Function - only look at selection?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Function-only-look-at-selection/m-p/687262#M248986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=count({$&amp;lt;Leg={"Allocation"}&amp;gt;}DISTINCT [Trade ID])&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp; &lt;/SPAN&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;&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;What is your requirement? Not clear from your question.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 08:52:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Function-only-look-at-selection/m-p/687262#M248986</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-07-01T08:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Count Function - only look at selection?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Function-only-look-at-selection/m-p/687263#M248987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It does &lt;EM style="text-decoration: underline;"&gt;not&lt;/EM&gt; look at the current selection. It takes the current selection, and modifies this according to your set expression. So, in your case, it doesn't matter what the selection in "Leg" is - it will always look at 'Allocation' only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 08:53:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Function-only-look-at-selection/m-p/687263#M248987</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-07-01T08:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Count Function - only look at selection?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Function-only-look-at-selection/m-p/687264#M248988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh that's interesting! Thank you &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;Henric Cronström&lt;/A&gt;, that changes a lot. How would I count the number of Leg=Allocation in the current selection?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 09:49:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Function-only-look-at-selection/m-p/687264#M248988</guid>
      <dc:creator />
      <dc:date>2014-07-01T09:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Count Function - only look at selection?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Function-only-look-at-selection/m-p/687265#M248989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;=count({$&amp;lt;Leg={"Allocation"}&amp;gt;} &lt;STRONG&gt;Leg&lt;/STRONG&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 09:52:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Function-only-look-at-selection/m-p/687265#M248989</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-07-01T09:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Count Function - only look at selection?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Function-only-look-at-selection/m-p/687266#M248990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That would still change the selection to Allocation, just counting on a different field right? So wouldn't solve it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 09:55:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Function-only-look-at-selection/m-p/687266#M248990</guid>
      <dc:creator />
      <dc:date>2014-07-01T09:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Count Function - only look at selection?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Function-only-look-at-selection/m-p/687267#M248991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, did not get your requirement properly. Could you elaborate a bit more?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 09:59:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Function-only-look-at-selection/m-p/687267#M248991</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-07-01T09:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count Function - only look at selection?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Function-only-look-at-selection/m-p/687268#M248992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Count how many Leg=Allocation there are in the current selection. If allocation isn't selected from a different listbox, this should obviously be 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 10:02:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Function-only-look-at-selection/m-p/687268#M248992</guid>
      <dc:creator />
      <dc:date>2014-07-01T10:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Count Function - only look at selection?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Function-only-look-at-selection/m-p/687269#M248993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=count({$&amp;lt;Leg={"=Leg='Allocation' "}&amp;gt;} &lt;STRONG&gt;Leg&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(If(Leg='Allocation', Leg))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 10:11:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Function-only-look-at-selection/m-p/687269#M248993</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-07-01T10:11:41Z</dc:date>
    </item>
  </channel>
</rss>

