<?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 highest value in list box as default in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selecting-highest-value-in-list-box-as-default/m-p/396082#M147712</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;I am using gauges with reference lines in my application (% target completion at a certain date) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I list all the dates in a list box, but if more than 1 date is available or selected then the reference line don't show&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dates are all for the start of a week, so typically I will have 52 dates in the list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My fin year starts in April, so I have 3 dates available in the list, if I select any &lt;STRONG&gt;one&lt;/STRONG&gt; of these dates, my reference line moves accordingly, but if I select &lt;STRONG&gt;no&lt;/STRONG&gt; dates the the reference line disapear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is: How can I select the latest or last date in the listbox by default?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Apr 2013 14:45:03 GMT</pubDate>
    <dc:creator>joggiek</dc:creator>
    <dc:date>2013-04-24T14:45:03Z</dc:date>
    <item>
      <title>Selecting highest value in list box as default</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-highest-value-in-list-box-as-default/m-p/396082#M147712</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;I am using gauges with reference lines in my application (% target completion at a certain date) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I list all the dates in a list box, but if more than 1 date is available or selected then the reference line don't show&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dates are all for the start of a week, so typically I will have 52 dates in the list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My fin year starts in April, so I have 3 dates available in the list, if I select any &lt;STRONG&gt;one&lt;/STRONG&gt; of these dates, my reference line moves accordingly, but if I select &lt;STRONG&gt;no&lt;/STRONG&gt; dates the the reference line disapear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is: How can I select the latest or last date in the listbox by default?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 14:45:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-highest-value-in-list-box-as-default/m-p/396082#M147712</guid>
      <dc:creator>joggiek</dc:creator>
      <dc:date>2013-04-24T14:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting highest value in list box as default</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-highest-value-in-list-box-as-default/m-p/396083#M147713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try adding a Select in Field action to the OnOpen document trigger (on the Triggers tab of the document properties window). The field is your date field, the search string is: max({1} &lt;EM&gt;yourdatefieldhere &lt;/EM&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 16:11:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-highest-value-in-list-box-as-default/m-p/396083#M147713</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-04-24T16:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting highest value in list box as default</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-highest-value-in-list-box-as-default/m-p/396084#M147714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could also use the FirstSortedValue() function in the expression for the reference line. Basically if you do FirstSortedValue(VALUE,-DATE). The function will select the corresponding value for the maximum date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 16:46:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-highest-value-in-list-box-as-default/m-p/396084#M147714</guid>
      <dc:creator />
      <dc:date>2013-04-24T16:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting highest value in list box as default</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-highest-value-in-list-box-as-default/m-p/396085#M147715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I did not mention was that there are 4 years of dates for budgets, but they are unavailable (Gray), when I use the Trigger method it selects a date from 2018, even though it is grayed out...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try to get the FirstSortedValue syntax to work next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 19:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-highest-value-in-list-box-as-default/m-p/396085#M147715</guid>
      <dc:creator>joggiek</dc:creator>
      <dc:date>2013-04-24T19:17:52Z</dc:date>
    </item>
  </channel>
</rss>

