<?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: GetFieldSelections() to return individual values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-to-return-individual-values/m-p/499301#M186569</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Oct 2013 16:31:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-21T16:31:24Z</dc:date>
    <item>
      <title>GetFieldSelections() to return individual values</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-to-return-individual-values/m-p/499298#M186566</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;I'm trying to create a straight table that compares year-over-year revenue. Each year in the data set is a new column in the table, with the expression being the sum of revenue. When no years are selected (in list boxes), the table should show all years. When a year/multiple years are selected, I want the deselected column years to hide. To do so, I'm using a condition on each expression using GetFieldSelections() as show below (this example would be for column/year 2011):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GetFieldSelections(CalendarYear) = '2011' or GetSelectedCount(CalendarYear) = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second part of the condition works correctly (show column if no fields are selected), but the GetFieldSelections() function won't work here for all cases because the return type is a string of values separated by a comma. If &lt;EM&gt;only &lt;/EM&gt;year 2011 is selected, the condition works as desired, but when multiple years are selected (including 2011), the function return multiple years and the condition is always executed as false. Is there another string function I can use here to see if a certain value exists in the set?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 15:47:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-to-return-individual-values/m-p/499298#M186566</guid>
      <dc:creator />
      <dc:date>2013-10-21T15:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections() to return individual values</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-to-return-individual-values/m-p/499299#M186567</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;You can use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Index(GetFieldSelection(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CalendarYear)&lt;/SPAN&gt;, 2011) &amp;gt;0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aurélien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 15:55:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-to-return-individual-values/m-p/499299#M186567</guid>
      <dc:creator>Aurelien_Martinez</dc:creator>
      <dc:date>2013-10-21T15:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections() to return individual values</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-to-return-individual-values/m-p/499300#M186568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at the index() function in combination with concat:&lt;/P&gt;&lt;P&gt;index(concat(distinct [Calendar Year], ','), '2011')&lt;/P&gt;&lt;P&gt;no need to check for "no selections" anymore&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 15:59:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-to-return-individual-values/m-p/499300#M186568</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-21T15:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections() to return individual values</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-to-return-individual-values/m-p/499301#M186569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 16:31:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-to-return-individual-values/m-p/499301#M186569</guid>
      <dc:creator />
      <dc:date>2013-10-21T16:31:24Z</dc:date>
    </item>
  </channel>
</rss>

