<?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 Selecting First value in a List Box selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selecting-First-value-in-a-List-Box-selection/m-p/639014#M1088216</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 have a case where a user can select more than one item in a list box. I want to use the first item selected in a chart. For example, if my list box is as shown below with the selections show, how can I extract POR1H14 as the Top item and use this in my chart? I've tried GetFieldSelections etc but am struggling on how to get the 'top' list item selected... All help much appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/60096_Capture.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jun 2014 11:06:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-04T11:06:39Z</dc:date>
    <item>
      <title>Selecting First value in a List Box selection</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-First-value-in-a-List-Box-selection/m-p/639014#M1088216</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 have a case where a user can select more than one item in a list box. I want to use the first item selected in a chart. For example, if my list box is as shown below with the selections show, how can I extract POR1H14 as the Top item and use this in my chart? I've tried GetFieldSelections etc but am struggling on how to get the 'top' list item selected... All help much appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/60096_Capture.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 11:06:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-First-value-in-a-List-Box-selection/m-p/639014#M1088216</guid>
      <dc:creator />
      <dc:date>2014-06-04T11:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting First value in a List Box selection</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-First-value-in-a-List-Box-selection/m-p/639015#M1088217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try: =MinString([Forecast Version])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chart Dimension: [Forecast Version], expression like: =Sum({&amp;lt; [Forecast Version] ={'$(=MinString([Forecast Version]))'}&amp;gt;} YourField)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 11:18:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-First-value-in-a-List-Box-selection/m-p/639015#M1088217</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-04T11:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting First value in a List Box selection</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-First-value-in-a-List-Box-selection/m-p/639016#M1088218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you must take care to have the same sort order in listbox and your function. If values in listbox are sorted by its string value, it will be easy with maxstring or minstring. If there is some other field (for example with id), you may use FirstSortedValue().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 13:01:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-First-value-in-a-List-Box-selection/m-p/639016#M1088218</guid>
      <dc:creator />
      <dc:date>2014-06-04T13:01:20Z</dc:date>
    </item>
  </channel>
</rss>

