<?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: How to use COUNT with multiple selections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-COUNT-with-multiple-selections/m-p/1100084#M365087</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have a link between the two tables - a key field - this will work automatically. There is no need to program it. From what you have said so far, a standard &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count( [&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;HCCurrent.Sr. No&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&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; font-size: 13px;"&gt;should do the trick. That is - if your data model hast this link between the two tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&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; font-size: 13px;"&gt;HIC&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jul 2016 15:51:33 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2016-07-07T15:51:33Z</dc:date>
    <item>
      <title>How to use COUNT with multiple selections</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-COUNT-with-multiple-selections/m-p/1100080#M365083</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;I want to count the number of records ( &lt;SPAN style="font-size: 13.3333px;"&gt;HCCurrent.Sr. No)&lt;/SPAN&gt; and it does good by using the below expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt; HCCurrent.Eligible = { '$(=GetFieldSelections(Eligible))'},&lt;/P&gt;&lt;P&gt; HCCurrent.OU = { '$(=GetFieldSelections(OU))'}&amp;gt;}[HCCurrent.Sr. No])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however if I do not select anything in OU then it returns zero. &lt;/P&gt;&lt;P&gt;How can I use count such that it outputs the dynamic count of a particular field as I add or reduce filter conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 09:54:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-COUNT-with-multiple-selections/m-p/1100080#M365083</guid>
      <dc:creator />
      <dc:date>2016-07-06T09:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to use COUNT with multiple selections</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-COUNT-with-multiple-selections/m-p/1100081#M365084</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; font-size: 13px;"&gt;GetFieldSelections only work with a selected field. Perhaps you can ensure that your list box properties has "always one value selected" checked.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Pravesh &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 11:52:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-COUNT-with-multiple-selections/m-p/1100081#M365084</guid>
      <dc:creator />
      <dc:date>2016-07-06T11:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to use COUNT with multiple selections</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-COUNT-with-multiple-selections/m-p/1100082#M365085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you just use &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Count( [&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;HCCurrent.Sr. No&lt;/SPAN&gt;] )&lt;/P&gt;&lt;P&gt;this will automatically show the dynamic count based on your filter conditions (your selections). But this is not what you want do ... or?&amp;nbsp; So, you want something different - but I am not sure I understand what.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 12:16:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-COUNT-with-multiple-selections/m-p/1100082#M365085</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2016-07-06T12:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to use COUNT with multiple selections</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-COUNT-with-multiple-selections/m-p/1100083#M365086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henric&lt;/P&gt;&lt;P&gt;I can use simply count (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;HCCurrent.Sr. No&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;]&amp;nbsp; ) because i want to use the values from the selection.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I did not highlight earlier that i have 2 different tables involved. What i select will be from &lt;STRONG&gt;Table1 ( without the qualifier)&lt;/STRONG&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; font-size: 13px;"&gt;and I want the count with these selection from &lt;EM style="text-decoration: underline;"&gt;Table2( with qualifier &lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM style="text-decoration: underline;"&gt;HCCurrent )&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I am able to explain this .&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;count({&amp;lt; &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;HCCurrent.Eligible&lt;/EM&gt;&lt;/SPAN&gt; = { '$(=GetFieldSelections(&lt;STRONG&gt;Eligible&lt;/STRONG&gt;))'},&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="text-decoration: underline;"&gt;HCCurrent.OU&lt;/EM&gt; = { '$(=GetFieldSelections(&lt;STRONG&gt;OU&lt;/STRONG&gt;))'}&amp;gt;}[&lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;HCCurrent.Sr. No&lt;/EM&gt;&lt;/SPAN&gt;])&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 12:42:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-COUNT-with-multiple-selections/m-p/1100083#M365086</guid>
      <dc:creator />
      <dc:date>2016-07-06T12:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to use COUNT with multiple selections</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-COUNT-with-multiple-selections/m-p/1100084#M365087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have a link between the two tables - a key field - this will work automatically. There is no need to program it. From what you have said so far, a standard &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count( [&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;HCCurrent.Sr. No&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&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; font-size: 13px;"&gt;should do the trick. That is - if your data model hast this link between the two tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&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; font-size: 13px;"&gt;HIC&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 15:51:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-COUNT-with-multiple-selections/m-p/1100084#M365087</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2016-07-07T15:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to use COUNT with multiple selections</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-COUNT-with-multiple-selections/m-p/1100085#M365088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post a screenshot of your data model from the Table Viewer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 16:01:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-COUNT-with-multiple-selections/m-p/1100085#M365088</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-07-07T16:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to use COUNT with multiple selections</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-COUNT-with-multiple-selections/m-p/1100086#M365089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Henric &amp;amp; Rob,&lt;/P&gt;&lt;P&gt;I may not be able to share the screenshot due to security issues.&lt;/P&gt;&lt;P&gt;But the &lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-decoration: underline;"&gt;Table2( with qualifier &lt;/EM&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit; text-decoration: underline;"&gt;HCCurrent ) &lt;/EM&gt;is an independent table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have intentionally kept it independent and not linked it into the data model because I want to count the data from this table as it is the current snapshot. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to point me to the Data Model, i will consider to re-design it. &lt;/P&gt;&lt;P&gt;Thanks for all the help so far. Will surely come to you again in case I have challenges.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ROhit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 03:01:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-COUNT-with-multiple-selections/m-p/1100086#M365089</guid>
      <dc:creator />
      <dc:date>2016-07-08T03:01:05Z</dc:date>
    </item>
  </channel>
</rss>

