<?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: Default max date selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Default-max-date-selection/m-p/767935#M272746</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Piet's post above was my next guess.. so maybe you can post your QVW with some sample data in it next ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Mar 2015 14:52:26 GMT</pubDate>
    <dc:creator>JonnyPoole</dc:creator>
    <dc:date>2015-03-09T14:52:26Z</dc:date>
    <item>
      <title>Default max date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Default-max-date-selection/m-p/767930#M272741</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;Here I have a scenario where I'm retrieving date field as 42060, 42081 number format, i converted this to proper date format as 04-Mar in list box (as per my requirement), here I need to show default maximum date when the documents gets opened. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 14:27:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-max-date-selection/m-p/767930#M272741</guid>
      <dc:creator />
      <dc:date>2015-03-09T14:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Default max date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Default-max-date-selection/m-p/767931#M272742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can add an 'open document'&amp;nbsp; trigger with a 'select in field' action and pass in the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=date(max( {1} Date))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where 'Date' is your Date field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The&amp;nbsp; trigger is done at Settings -&amp;gt; Document Properties -&amp;gt; Triggers. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 14:31:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-max-date-selection/m-p/767931#M272742</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-03-09T14:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Default max date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Default-max-date-selection/m-p/767932#M272743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can set a trigger on the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Settings --&amp;gt; Document Properties --&amp;gt; Triggers --&amp;gt; On open --&amp;gt; Select in Field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On field put your desired date field name&lt;/P&gt;&lt;P&gt;On search string put Max([your desired date field name) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 14:32:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-max-date-selection/m-p/767932#M272743</guid>
      <dc:creator>alex_millan</dc:creator>
      <dc:date>2015-03-09T14:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Default max date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Default-max-date-selection/m-p/767933#M272744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a trigger when opening the document (Settings\Doc properties\triggers\Document triggers\OnOpen or use e.g. a start button with trigger). Use a Select in Field trigger with your date field and an expression in the value expression like:&lt;/P&gt;&lt;P&gt;=Date(Max(YourDateField),'DD-MMM')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 14:37:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-max-date-selection/m-p/767933#M272744</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-03-09T14:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Default max date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Default-max-date-selection/m-p/767934#M272745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex &amp;amp; Jonathan poole,&lt;/P&gt;&lt;P&gt;Thnx for the reply...I tried both before ..but its not working..let me put this in detail..my date field is [Day-Month] with following values 42054,42055,42060. here I converted this stuff to 24-feb using&amp;nbsp; =Date(PurgeChar([Day-Month],'[]'),'DD-MMM') in my list box. Now when I'm trying to show the default max date values its not working. In the trigger I tried max(my field name) n also max(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;=Date(PurgeChar([Day-Month],'[]'),'DD-MMM') ..but no use.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;The same thing is working fine when I try it in the text object...not sure why its behaving this way...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 14:44:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-max-date-selection/m-p/767934#M272745</guid>
      <dc:creator />
      <dc:date>2015-03-09T14:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Default max date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Default-max-date-selection/m-p/767935#M272746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Piet's post above was my next guess.. so maybe you can post your QVW with some sample data in it next ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 14:52:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-max-date-selection/m-p/767935#M272746</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-03-09T14:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Default max date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Default-max-date-selection/m-p/767936#M272747</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;Please find attached qvw file .. !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 15:08:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-max-date-selection/m-p/767936#M272747</guid>
      <dc:creator />
      <dc:date>2015-03-09T15:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Default max date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Default-max-date-selection/m-p/767937#M272748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trigger select in field Day-Month with in value field:&lt;/P&gt;&lt;P&gt;=Max(Num#([Day-Month]))&lt;/P&gt;&lt;P&gt;&lt;IMG alt="MaxValue.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/80262_MaxValue.png" style="height: 521px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 15:21:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-max-date-selection/m-p/767937#M272748</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-03-09T15:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Default max date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Default-max-date-selection/m-p/767938#M272749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i'd suggest fixing your date load in the load script .&amp;nbsp; otherwise the trigger needs to invoke the same purgechar() expression.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a working example of the select in field action WITHOUT fixing the load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;max( {1} PurgeChar([Day-Month],'[]'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 15:24:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-max-date-selection/m-p/767938#M272749</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-03-09T15:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Default max date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Default-max-date-selection/m-p/767939#M272750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnx Piet, Its working now, I tried the same thing before but don't know why it didn't worked...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 15:32:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-max-date-selection/m-p/767939#M272750</guid>
      <dc:creator />
      <dc:date>2015-03-09T15:32:17Z</dc:date>
    </item>
  </channel>
</rss>

