<?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: Issue with Getfieldselected after 6 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-with-Getfieldselected-after-6/m-p/1611773#M445196</link>
    <description>&lt;P&gt;Maybe like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;= 'Membership Type: ' &amp;amp;if(len(Getfieldselections(MemeberShipTypeDescription))=0,Null(),Concat( distinct subfield((MemeberShipTypeDescription),'-',1),','))&amp;amp; chr(13) &amp;amp; chr(13)
&amp;amp; 'Specialty: 		' &amp;amp;if(len(Getfieldselections(SpecialtyCodeDescription))=0,Null(),Concat( distinct subfield((SpecialtyCodeDescription),'-',1),',') )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue with your expression is, that using Getfieldselections() and selecting all possible values will return the Value='ALL' by default, not the single values&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;From QV Help:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="Bold"&gt;&lt;FONT color="#000000"&gt;getfieldselections &lt;/FONT&gt;(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt; FieldName [, ValueSep [, MaxValues [, State]]]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Returns a string with the current selections in a field. It is possible to query an alternate state.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;ValueSep&lt;/SPAN&gt; is the separator to be put between field values. The default is ', '.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;Maxvalues&lt;/SPAN&gt; is the maximum number of field values to be individually listed. When a larger number of values is selected the format 'x of y values' will be used instead. The default is 6.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;State&lt;/SPAN&gt; is the alternate state to query.&lt;/P&gt;&lt;P&gt;The string that is returned can be in these forms:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;'x, y,z'&lt;/TD&gt;&lt;TD&gt;If the number of selected values is &lt;SPAN class="Italic"&gt;Maxvalues&lt;/SPAN&gt; or less, the string returned is a list of the selected values, separated with &lt;SPAN class="Italic"&gt;Valuesep&lt;/SPAN&gt; as delimiter.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;'NOT x, y, z'&lt;/TD&gt;&lt;TD&gt;If the number of non-selected values is &lt;SPAN class="Italic"&gt;Maxvalues&lt;/SPAN&gt; or less, the string returned is a list of the non-selected values, separated with &lt;SPAN class="Italic"&gt;ValueSep&lt;/SPAN&gt; as delimiter, and NOT as a prefix.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;'x of y'&lt;/TD&gt;&lt;TD&gt;If the number of selected values (x) is more than &lt;SPAN class="Italic"&gt;Maxvalues&lt;/SPAN&gt;, but less than the total number of values (y) less &lt;SPAN class="Italic"&gt;Maxvalues&lt;/SPAN&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;'ALL'&lt;/TD&gt;&lt;TD&gt;If all values are selected.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;'-'&lt;/TD&gt;&lt;TD&gt;If no value is selected.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
    <pubDate>Mon, 12 Aug 2019 21:01:02 GMT</pubDate>
    <dc:creator>Frank_Hartmann</dc:creator>
    <dc:date>2019-08-12T21:01:02Z</dc:date>
    <item>
      <title>Issue with Getfieldselected after 6</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-Getfieldselected-after-6/m-p/1611755#M445195</link>
      <description>&lt;P&gt;Please see attached qvw&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just want specialty code in the specialty portion of selections text box&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qlikview_list_box_code_description_specialty.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16901i00C054CC466EFEFA/image-size/large?v=v2&amp;amp;px=999" role="button" title="qlikview_list_box_code_description_specialty.png" alt="qlikview_list_box_code_description_specialty.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;works great if I pick 6 or less&lt;/P&gt;&lt;P&gt;as soon as I pick the 7th&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qlikview_list_box_code_description_specialty_7.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16902i9278B32296BC659E/image-size/large?v=v2&amp;amp;px=999" role="button" title="qlikview_list_box_code_description_specialty_7.png" alt="qlikview_list_box_code_description_specialty_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would like&amp;nbsp; specialty to show all 7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know default is 6&lt;/P&gt;&lt;P&gt;Tried increasing to 100 but no luck&lt;/P&gt;&lt;P&gt;guessing has something to do with concat ?&lt;/P&gt;&lt;P&gt;Any help would be appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 19:47:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-Getfieldselected-after-6/m-p/1611755#M445195</guid>
      <dc:creator>Johnnyg248</dc:creator>
      <dc:date>2019-08-12T19:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Getfieldselected after 6</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-Getfieldselected-after-6/m-p/1611773#M445196</link>
      <description>&lt;P&gt;Maybe like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;= 'Membership Type: ' &amp;amp;if(len(Getfieldselections(MemeberShipTypeDescription))=0,Null(),Concat( distinct subfield((MemeberShipTypeDescription),'-',1),','))&amp;amp; chr(13) &amp;amp; chr(13)
&amp;amp; 'Specialty: 		' &amp;amp;if(len(Getfieldselections(SpecialtyCodeDescription))=0,Null(),Concat( distinct subfield((SpecialtyCodeDescription),'-',1),',') )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue with your expression is, that using Getfieldselections() and selecting all possible values will return the Value='ALL' by default, not the single values&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;From QV Help:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="Bold"&gt;&lt;FONT color="#000000"&gt;getfieldselections &lt;/FONT&gt;(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt; FieldName [, ValueSep [, MaxValues [, State]]]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Returns a string with the current selections in a field. It is possible to query an alternate state.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;ValueSep&lt;/SPAN&gt; is the separator to be put between field values. The default is ', '.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;Maxvalues&lt;/SPAN&gt; is the maximum number of field values to be individually listed. When a larger number of values is selected the format 'x of y values' will be used instead. The default is 6.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;State&lt;/SPAN&gt; is the alternate state to query.&lt;/P&gt;&lt;P&gt;The string that is returned can be in these forms:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;'x, y,z'&lt;/TD&gt;&lt;TD&gt;If the number of selected values is &lt;SPAN class="Italic"&gt;Maxvalues&lt;/SPAN&gt; or less, the string returned is a list of the selected values, separated with &lt;SPAN class="Italic"&gt;Valuesep&lt;/SPAN&gt; as delimiter.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;'NOT x, y, z'&lt;/TD&gt;&lt;TD&gt;If the number of non-selected values is &lt;SPAN class="Italic"&gt;Maxvalues&lt;/SPAN&gt; or less, the string returned is a list of the non-selected values, separated with &lt;SPAN class="Italic"&gt;ValueSep&lt;/SPAN&gt; as delimiter, and NOT as a prefix.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;'x of y'&lt;/TD&gt;&lt;TD&gt;If the number of selected values (x) is more than &lt;SPAN class="Italic"&gt;Maxvalues&lt;/SPAN&gt;, but less than the total number of values (y) less &lt;SPAN class="Italic"&gt;Maxvalues&lt;/SPAN&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;'ALL'&lt;/TD&gt;&lt;TD&gt;If all values are selected.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;'-'&lt;/TD&gt;&lt;TD&gt;If no value is selected.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 21:01:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-Getfieldselected-after-6/m-p/1611773#M445196</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2019-08-12T21:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Getfieldselected after 6</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-Getfieldselected-after-6/m-p/1612019#M445209</link>
      <description>&lt;P&gt;Perfect! Works like a champ&lt;/P&gt;&lt;P&gt;Thanks for the detailed explanation as well!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 13:43:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-Getfieldselected-after-6/m-p/1612019#M445209</guid>
      <dc:creator>Johnnyg248</dc:creator>
      <dc:date>2019-08-13T13:43:58Z</dc:date>
    </item>
  </channel>
</rss>

