<?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: Get Field Selections Syntax in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-Field-Selections-Syntax/m-p/918839#M318508</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Better than the HELP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor283"&gt;&lt;/A&gt;&lt;A name="getfieldselections"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;&lt;EM&gt;&lt;STRONG&gt;getfieldselections (&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN class="Italic"&gt; FieldName [, ValueSep [, MaxValues [, State]]]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="syntax"&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;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE style="margin-right: auto;"&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 &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/x.png" /&gt; 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;TR&gt;&lt;TD&gt;&amp;lt;search string&amp;gt;&lt;/TD&gt;&lt;TD&gt;If you have selected using search, the search string is returned.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P class="example"&gt;Examples&lt;/P&gt;&lt;P class="Code"&gt;getfieldselections ( Year ) &lt;/P&gt;&lt;P class="Code"&gt;getfieldselections ( Year, '; ' ) &lt;/P&gt;&lt;P class="Code"&gt;getfieldselections ( Year, '; ' , 10 ) &lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;Note that the alternate &lt;EM&gt;State&lt;/EM&gt; argument is only available in recent 11.20 SRs (AFAIR since SR8).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jul 2015 21:04:16 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-07-28T21:04:16Z</dc:date>
    <item>
      <title>Get Field Selections Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Field-Selections-Syntax/m-p/918838#M318507</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;&lt;/P&gt;&lt;P&gt;Can somebody give me a full syntax of GetFieldSelections with Alternate states included in it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Don&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 20:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Field-Selections-Syntax/m-p/918838#M318507</guid>
      <dc:creator>don_qlikview</dc:creator>
      <dc:date>2015-07-28T20:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get Field Selections Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Field-Selections-Syntax/m-p/918839#M318508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Better than the HELP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor283"&gt;&lt;/A&gt;&lt;A name="getfieldselections"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;&lt;EM&gt;&lt;STRONG&gt;getfieldselections (&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN class="Italic"&gt; FieldName [, ValueSep [, MaxValues [, State]]]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="syntax"&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;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE style="margin-right: auto;"&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 &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/x.png" /&gt; 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;TR&gt;&lt;TD&gt;&amp;lt;search string&amp;gt;&lt;/TD&gt;&lt;TD&gt;If you have selected using search, the search string is returned.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P class="example"&gt;Examples&lt;/P&gt;&lt;P class="Code"&gt;getfieldselections ( Year ) &lt;/P&gt;&lt;P class="Code"&gt;getfieldselections ( Year, '; ' ) &lt;/P&gt;&lt;P class="Code"&gt;getfieldselections ( Year, '; ' , 10 ) &lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;Note that the alternate &lt;EM&gt;State&lt;/EM&gt; argument is only available in recent 11.20 SRs (AFAIR since SR8).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 21:04:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Field-Selections-Syntax/m-p/918839#M318508</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-07-28T21:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get Field Selections Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Field-Selections-Syntax/m-p/918840#M318509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Qlikview 11.2 SR12, so i am assuming this should work. Also, can you provide a sample example for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Don&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 21:17:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Field-Selections-Syntax/m-p/918840#M318509</guid>
      <dc:creator>don_qlikview</dc:creator>
      <dc:date>2015-07-28T21:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get Field Selections Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Field-Selections-Syntax/m-p/918841#M318510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should look like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=GetFieldSelections( Year, ', ', 10, 'AS1')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 21:43:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Field-Selections-Syntax/m-p/918841#M318510</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-07-28T21:43:17Z</dc:date>
    </item>
  </channel>
</rss>

