<?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 Select nth listbox value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-nth-listbox-value/m-p/604208#M223247</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a field with following values in a listbox:&lt;/P&gt;&lt;P&gt;20130630&lt;/P&gt;&lt;P&gt;20130531&lt;/P&gt;&lt;P&gt;20130430&lt;/P&gt;&lt;P&gt;20130331&lt;/P&gt;&lt;P&gt;20130228&lt;/P&gt;&lt;P&gt;20130131&lt;/P&gt;&lt;P&gt;20121231&lt;/P&gt;&lt;P&gt;........ Continues down&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I simply need to determine, in a variable, the value within listbox that is 3 down from the MAX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in this case, it would be 20130331 (MAX is 20130630, then go 3 values down).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thought this would be simple, but I can't get this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Mar 2014 12:05:17 GMT</pubDate>
    <dc:creator>jzimolong</dc:creator>
    <dc:date>2014-03-05T12:05:17Z</dc:date>
    <item>
      <title>Select nth listbox value</title>
      <link>https://community.qlik.com/t5/QlikView/Select-nth-listbox-value/m-p/604208#M223247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a field with following values in a listbox:&lt;/P&gt;&lt;P&gt;20130630&lt;/P&gt;&lt;P&gt;20130531&lt;/P&gt;&lt;P&gt;20130430&lt;/P&gt;&lt;P&gt;20130331&lt;/P&gt;&lt;P&gt;20130228&lt;/P&gt;&lt;P&gt;20130131&lt;/P&gt;&lt;P&gt;20121231&lt;/P&gt;&lt;P&gt;........ Continues down&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I simply need to determine, in a variable, the value within listbox that is 3 down from the MAX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in this case, it would be 20130331 (MAX is 20130630, then go 3 values down).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thought this would be simple, but I can't get this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 12:05:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-nth-listbox-value/m-p/604208#M223247</guid>
      <dc:creator>jzimolong</dc:creator>
      <dc:date>2014-03-05T12:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Select nth listbox value</title>
      <link>https://community.qlik.com/t5/QlikView/Select-nth-listbox-value/m-p/604209#M223248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LIKE THIS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 12:13:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-nth-listbox-value/m-p/604209#M223248</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-03-05T12:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Select nth listbox value</title>
      <link>https://community.qlik.com/t5/QlikView/Select-nth-listbox-value/m-p/604210#M223249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think so, it needs to be dynamic.&amp;nbsp; I added value 20130731 to your inline table, then reloaded.&amp;nbsp; The variable remains 20130331, but it should now be 20130430.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 12:22:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-nth-listbox-value/m-p/604210#M223249</guid>
      <dc:creator>jzimolong</dc:creator>
      <dc:date>2014-03-05T12:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Select nth listbox value</title>
      <link>https://community.qlik.com/t5/QlikView/Select-nth-listbox-value/m-p/604211#M223250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NOW?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 12:35:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-nth-listbox-value/m-p/604211#M223250</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-03-05T12:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Select nth listbox value</title>
      <link>https://community.qlik.com/t5/QlikView/Select-nth-listbox-value/m-p/604212#M223251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting solution.&amp;nbsp; I'm trying to resolve this without having to add an ID field and extra scripting, but I hadn't considered doing that.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I can figure this out without adding to the load script, it would be helpful because I could then re-use the solution on different fields.&amp;nbsp; But this technique will also provide some value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still hoping to get this resolved without changing the load script and table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 12:49:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-nth-listbox-value/m-p/604212#M223251</guid>
      <dc:creator>jzimolong</dc:creator>
      <dc:date>2014-03-05T12:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Select nth listbox value</title>
      <link>https://community.qlik.com/t5/QlikView/Select-nth-listbox-value/m-p/604213#M223252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used Manish's template but you can achieve the solution without running it in script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please see my variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 13:05:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-nth-listbox-value/m-p/604213#M223252</guid>
      <dc:creator />
      <dc:date>2014-03-05T13:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Select nth listbox value</title>
      <link>https://community.qlik.com/t5/QlikView/Select-nth-listbox-value/m-p/604214#M223253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor235"&gt;&lt;/A&gt;&lt;A name="max"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="Bold"&gt;USE MAX FUNCTION AS suggested by Byron...&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="Bold"&gt;Create a variable...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;/P&gt;&lt;P class="syntax"&gt;Let vForthRecord = Max(VALUE,4);&lt;/P&gt;&lt;P class="syntax"&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="Bold"&gt;max(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;[{set_expression}][ &lt;SPAN class="Bold"&gt;distinct&lt;/SPAN&gt; ] [ &lt;SPAN class="Bold"&gt;total&lt;/SPAN&gt; [&amp;lt;fld {, fld}&amp;gt;]] expression [, rank])&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Returns the numeric maximum value of &lt;SPAN class="Italic"&gt;expression&lt;/SPAN&gt; or &lt;SPAN class="Italic"&gt;field&lt;/SPAN&gt; iterated over the chart dimension(s). &lt;SPAN class="Italic"&gt;Rank&lt;/SPAN&gt; defaults to 1 which corresponds to the highest value. By specifying &lt;SPAN class="Italic"&gt;rank&lt;/SPAN&gt; as 2 the second highest value will be returned. If &lt;SPAN class="Italic"&gt;rank&lt;/SPAN&gt; is 3 the third highest value will be returned and so on. &lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P class="Code"&gt;max( Sales )&lt;/P&gt;&lt;P class="Code"&gt;max( Sales, 2 )&lt;/P&gt;&lt;P class="Code"&gt;max( Price*Quantity )&lt;/P&gt;&lt;P class="Code"&gt;max( total Sales )&lt;/P&gt;&lt;P class="Code"&gt;max( {1} total Sales )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 13:26:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-nth-listbox-value/m-p/604214#M223253</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-03-05T13:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Select nth listbox value</title>
      <link>https://community.qlik.com/t5/QlikView/Select-nth-listbox-value/m-p/604215#M223254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #444444; background: white;"&gt;If you have answer please share , it is &lt;/SPAN&gt;&lt;EM style="font-style: normal; font-family: 'Arial','sans-serif';"&gt;helpful&lt;/EM&gt;&lt;SPAN class="apple-converted-space"&gt; &lt;/SPAN&gt;others&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 14:34:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-nth-listbox-value/m-p/604215#M223254</guid>
      <dc:creator />
      <dc:date>2014-03-05T14:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Select nth listbox value</title>
      <link>https://community.qlik.com/t5/QlikView/Select-nth-listbox-value/m-p/604216#M223255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Byron and Manish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ultimately used the Max function to get this working:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Max({1}PERIODID,4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Needed the {1} so the variable would consider all values in PERIODID, irrespective of the current selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 14:42:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-nth-listbox-value/m-p/604216#M223255</guid>
      <dc:creator>jzimolong</dc:creator>
      <dc:date>2014-03-05T14:42:52Z</dc:date>
    </item>
  </channel>
</rss>

