<?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: What does 'Get SelectedCount' actually do ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629123#M1090530</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;what I said was about getselectedcount() alone (that is exactly what you asked for in your question title) and not about the entire expression. However, it's a misunderstanding, good that you got your answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 May 2014 11:23:35 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2014-05-27T11:23:35Z</dc:date>
    <item>
      <title>What does 'Get SelectedCount' actually do ?</title>
      <link>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629115#M1090520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've come across a function (??) called GetSelectCount in a script. What does it actually do ? The actual code is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(GetSelectCount($(SalesYear))=0,Year(Today()),MaxString($(SalesYear)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does it count ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 10:01:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629115#M1090520</guid>
      <dc:creator />
      <dc:date>2014-05-27T10:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: What does 'Get SelectedCount' actually do ?</title>
      <link>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629116#M1090521</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;Getselectedcount() - Function returns the number values we are selecting in that Field.&lt;/P&gt;&lt;P&gt;In Your case,&lt;/P&gt;&lt;P&gt;If you are not selecting any year, it returns the Current Year,&lt;/P&gt;&lt;P&gt;If you are selecting one or more than one year, it returns maximum of the slected year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pradeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 10:09:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629116#M1090521</guid>
      <dc:creator>PradeepReddy</dc:creator>
      <dc:date>2014-05-27T10:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: What does 'Get SelectedCount' actually do ?</title>
      <link>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629117#M1090523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor1298"&gt;&lt;/A&gt;&lt;A name="GetSelectedCount("&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;GetSelectedCount(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;fieldname [, includeexcluded=false]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;returns the number of selected values in the field named &lt;SPAN class="Italic"&gt;fieldname&lt;/SPAN&gt;. If &lt;SPAN class="Italic"&gt;includeexcluded&lt;/SPAN&gt; is stated as true, the count will include selected values which are excluded by selections in another field.&lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P class="Code"&gt;getselectedcount( Customers )&lt;BR /&gt;getselectedcount( Customers, true )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 10:09:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629117#M1090523</guid>
      <dc:creator />
      <dc:date>2014-05-27T10:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: What does 'Get SelectedCount' actually do ?</title>
      <link>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629118#M1090525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here &lt;EM&gt;&lt;STRONG&gt;SalesYear&lt;/STRONG&gt; is a &lt;STRONG&gt;variable&lt;/STRONG&gt;&lt;/EM&gt; and gets expanded with dollar sign. It is expected to return a field name. Hence the getselectedcount($(SalesYear)) would return number of field values that are selected in that field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 10:12:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629118#M1090525</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-05-27T10:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: What does 'Get SelectedCount' actually do ?</title>
      <link>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629119#M1090526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK...so are you saying if I select years 2010 and 2012 then the number of field values returned will be 2 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 10:38:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629119#M1090526</guid>
      <dc:creator />
      <dc:date>2014-05-27T10:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: What does 'Get SelectedCount' actually do ?</title>
      <link>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629120#M1090527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No,&lt;/P&gt;&lt;P&gt;if you will select 2010 and 2011, it will return you 2011, and if you will select 2011, 2012, 2013 it will return you 2013, &lt;/P&gt;&lt;P&gt;simply it will return you the maximum selected year, if nothing is selected than it will return you the maximum year from that listbox.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 10:48:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629120#M1090527</guid>
      <dc:creator>israrkhan</dc:creator>
      <dc:date>2014-05-27T10:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: What does 'Get SelectedCount' actually do ?</title>
      <link>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629121#M1090528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Goto variable overview window and see the definition of the variable. Then you would understand for which field the result is expected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 10:51:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629121#M1090528</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-05-27T10:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: What does 'Get SelectedCount' actually do ?</title>
      <link>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629122#M1090529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah thank you...it's the value of the field, not the 'number of field values' as tresesco suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand it now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 11:21:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629122#M1090529</guid>
      <dc:creator />
      <dc:date>2014-05-27T11:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: What does 'Get SelectedCount' actually do ?</title>
      <link>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629123#M1090530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;what I said was about getselectedcount() alone (that is exactly what you asked for in your question title) and not about the entire expression. However, it's a misunderstanding, good that you got your answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 11:23:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629123#M1090530</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-05-27T11:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: What does 'Get SelectedCount' actually do ?</title>
      <link>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629124#M1090531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you have got the answer ,than close the thread..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 11:27:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629124#M1090531</guid>
      <dc:creator>israrkhan</dc:creator>
      <dc:date>2014-05-27T11:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: What does 'Get SelectedCount' actually do ?</title>
      <link>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629125#M1090532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you think SalesYear is a variable ? It's a field name.&lt;/P&gt;&lt;P&gt;You've completely confused me again !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone tell me.....does GetSelectedCount return a count or a value ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 11:27:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629125#M1090532</guid>
      <dc:creator />
      <dc:date>2014-05-27T11:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: What does 'Get SelectedCount' actually do ?</title>
      <link>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629126#M1090533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I haven't got the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are saying GetSelectedCount returns a value, whereas Tresesco is saying GetSelectedCount returns the number of field values selected. These are two different things and I'm still none the wiser.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 11:35:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629126#M1090533</guid>
      <dc:creator />
      <dc:date>2014-05-27T11:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: What does 'Get SelectedCount' actually do ?</title>
      <link>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629127#M1090534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Tresesco said right...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GetSelectedCount Return the "Number of&amp;nbsp; Selected values" .&lt;/P&gt;&lt;P&gt;let say, if you are writing this expression in text object =GetSelectedCount(Year), and you have selected year 2011 and 2012, in this case ,it will return you "number of selected values in year field" and you will see "2" in the text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but what i tried to explain you ,that is use of GetSelectedCount in your expression, which is&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=If(GetSelectCount($(SalesYear))=0,Year(Today()),MaxString($(SalesYear))),&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;here in the expression , GetSelectedCount will return result to your IF statement, and than if statement will return the final result that will be displayed in your object, that result will be Maximum Year.&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;so you need to understand if statement as well..&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;hope it help...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 11:46:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629127#M1090534</guid>
      <dc:creator>israrkhan</dc:creator>
      <dc:date>2014-05-27T11:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Re: What does 'Get SelectedCount' actually do ?</title>
      <link>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629128#M1090535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the attached qvw to come out of confusion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 11:46:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629128#M1090535</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-05-27T11:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: What does 'Get SelectedCount' actually do ?</title>
      <link>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629129#M1090536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right. I think there was a misunderstanding of language here. I became confused when you said, "No" !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you to Tresesco for the correct solution to the original enquiry.&lt;/P&gt;&lt;P&gt;And thank you for explaining the meaning of the full script statement which includes the MaxString function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 12:48:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-does-Get-SelectedCount-actually-do/m-p/629129#M1090536</guid>
      <dc:creator />
      <dc:date>2014-05-27T12:48:18Z</dc:date>
    </item>
  </channel>
</rss>

