<?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 List Object- How to count the options selected? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/List-Object-How-to-count-the-options-selected/m-p/217693#M70879</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you take a look at the example file called [Photo and Music], you'll notice that on the sheet Music there are several list boxes that have the count of selected items.&lt;/P&gt;&lt;P&gt;In this example, the function 'Count' is being used. So you can just write an expression like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;count(Distinct Month)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Now, if no selections are made, this will return the TOTAL number of distint items, when maybe what you want is zero. So, you can use an if statement that determines if something is selected or not:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;if(isnull(GetFieldSelections(Month)),0,count(Distinct Month))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Mike.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jan 2010 17:23:05 GMT</pubDate>
    <dc:creator>mike_garcia</dc:creator>
    <dc:date>2010-01-20T17:23:05Z</dc:date>
    <item>
      <title>List Object- How to count the options selected?</title>
      <link>https://community.qlik.com/t5/QlikView/List-Object-How-to-count-the-options-selected/m-p/217690#M70876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone!&lt;/P&gt;&lt;P&gt;I'm here this time because I've a list object of the months of the year &amp;amp; for a calculation (an expression in a table) I need to know how many months were selected of the list mentioned.&lt;/P&gt;&lt;P&gt;I tried to use the name of the field (Month) but it doesn't return me what I'm expecting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, how can I know how many month were selected?? so far, I'm not interested in know wich months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thxs in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 14:54:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Object-How-to-count-the-options-selected/m-p/217690#M70876</guid>
      <dc:creator />
      <dc:date>2010-01-20T14:54:31Z</dc:date>
    </item>
    <item>
      <title>List Object- How to count the options selected?</title>
      <link>https://community.qlik.com/t5/QlikView/List-Object-How-to-count-the-options-selected/m-p/217691#M70877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Use GetSelectedCount(Month)&lt;/P&gt;&lt;P&gt;Andris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 15:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Object-How-to-count-the-options-selected/m-p/217691#M70877</guid>
      <dc:creator />
      <dc:date>2010-01-20T15:03:42Z</dc:date>
    </item>
    <item>
      <title>List Object- How to count the options selected?</title>
      <link>https://community.qlik.com/t5/QlikView/List-Object-How-to-count-the-options-selected/m-p/217692#M70878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adris, thxs 4 answer.&lt;/P&gt;&lt;P&gt;I tried, but it returns -&lt;/P&gt;&lt;P&gt;I dont know if is because the field Month its a key field, could that be?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 17:10:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Object-How-to-count-the-options-selected/m-p/217692#M70878</guid>
      <dc:creator />
      <dc:date>2010-01-20T17:10:06Z</dc:date>
    </item>
    <item>
      <title>List Object- How to count the options selected?</title>
      <link>https://community.qlik.com/t5/QlikView/List-Object-How-to-count-the-options-selected/m-p/217693#M70879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you take a look at the example file called [Photo and Music], you'll notice that on the sheet Music there are several list boxes that have the count of selected items.&lt;/P&gt;&lt;P&gt;In this example, the function 'Count' is being used. So you can just write an expression like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;count(Distinct Month)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Now, if no selections are made, this will return the TOTAL number of distint items, when maybe what you want is zero. So, you can use an if statement that determines if something is selected or not:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;if(isnull(GetFieldSelections(Month)),0,count(Distinct Month))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Mike.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 17:23:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Object-How-to-count-the-options-selected/m-p/217693#M70879</guid>
      <dc:creator>mike_garcia</dc:creator>
      <dc:date>2010-01-20T17:23:05Z</dc:date>
    </item>
    <item>
      <title>List Object- How to count the options selected?</title>
      <link>https://community.qlik.com/t5/QlikView/List-Object-How-to-count-the-options-selected/m-p/217694#M70880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;I just did what you recommend me, and Thxs! It works..!&lt;/P&gt;&lt;P&gt;I'd tried count without distinct and descarted the idea!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thxs!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 17:33:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Object-How-to-count-the-options-selected/m-p/217694#M70880</guid>
      <dc:creator />
      <dc:date>2010-01-20T17:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: List Object- How to count the options selected?</title>
      <link>https://community.qlik.com/t5/QlikView/List-Object-How-to-count-the-options-selected/m-p/1706400#M451486</link>
      <description>&lt;P&gt;Thanks, GetSelectedCount worked good &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 08:21:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Object-How-to-count-the-options-selected/m-p/1706400#M451486</guid>
      <dc:creator>aeAndi</dc:creator>
      <dc:date>2020-05-29T08:21:20Z</dc:date>
    </item>
  </channel>
</rss>

