<?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 Most recent date variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Most-recent-date-variable/m-p/550408#M693991</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would like to set a variable defining the date closest to today. in my files i also have dates in the future, so max(date) won't work. &lt;/P&gt;&lt;P&gt;i am looking in the direction of minizing the delta between today() and the date field. can anyone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joris&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jul 2013 11:45:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-08T11:45:39Z</dc:date>
    <item>
      <title>Most recent date variable</title>
      <link>https://community.qlik.com/t5/QlikView/Most-recent-date-variable/m-p/550408#M693991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would like to set a variable defining the date closest to today. in my files i also have dates in the future, so max(date) won't work. &lt;/P&gt;&lt;P&gt;i am looking in the direction of minizing the delta between today() and the date field. can anyone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joris&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 11:45:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Most-recent-date-variable/m-p/550408#M693991</guid>
      <dc:creator />
      <dc:date>2013-07-08T11:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Most recent date variable</title>
      <link>https://community.qlik.com/t5/QlikView/Most-recent-date-variable/m-p/550409#M693992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=FirstSortedValue(EffectiveDate, fabs(Today()-EffectiveDate))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 12:10:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Most-recent-date-variable/m-p/550409#M693992</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-07-08T12:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Most recent date variable</title>
      <link>https://community.qlik.com/t5/QlikView/Most-recent-date-variable/m-p/550410#M693993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Max({&amp;lt;DateFieldName={'&amp;lt;$(=Today()'}&amp;gt;} DateFieldName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure that date format is same in DateFieldName and Today().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 12:23:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Most-recent-date-variable/m-p/550410#M693993</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-07-08T12:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Most recent date variable</title>
      <link>https://community.qlik.com/t5/QlikView/Most-recent-date-variable/m-p/550411#M693994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this already works, but includes dates in the future too. what can i do to show the closest date in the past?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;joris &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 12:45:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Most-recent-date-variable/m-p/550411#M693994</guid>
      <dc:creator />
      <dc:date>2013-07-08T12:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Most recent date variable</title>
      <link>https://community.qlik.com/t5/QlikView/Most-recent-date-variable/m-p/550412#M693995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so you don't need future dates comparison, try this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=FirstSortedValue(EffectiveDate, (If((Today()-EffectiveDate)&amp;gt;0,(Today()-EffectiveDate))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 12:55:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Most-recent-date-variable/m-p/550412#M693995</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-07-08T12:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Most recent date variable</title>
      <link>https://community.qlik.com/t5/QlikView/Most-recent-date-variable/m-p/550413#M693996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;great! works fine!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 12:57:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Most-recent-date-variable/m-p/550413#M693996</guid>
      <dc:creator />
      <dc:date>2013-07-08T12:57:43Z</dc:date>
    </item>
  </channel>
</rss>

