<?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: How to get max date from script depending upon current selection of calender date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838599#M294793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Current selections are not available during the load. So there are no current selections that can be used in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Apr 2015 09:24:58 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-04-28T09:24:58Z</dc:date>
    <item>
      <title>How to get max date from script depending upon current selection of calender date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838598#M294792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have Batch date from script but I want to pull latest date from script depending upon current selection. Please refer the following ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 2&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 3&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 4&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;MATNR&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;KEY&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;BatchDate&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Qty&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;123&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;22/1/2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;456&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;18/2/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;789&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;24/4/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In above example : MATNR 1: I have 3 keys and 3 dates but with same qty. Now In calender I have selcted &lt;STRONG&gt;2015 Apr.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So in that case I want only 1 row that is last row as it is nearer to my selection date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to handle this in script side only, so How to write a script for that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 06:48:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838598#M294792</guid>
      <dc:creator />
      <dc:date>2015-04-28T06:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to get max date from script depending upon current selection of calender date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838599#M294793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Current selections are not available during the load. So there are no current selections that can be used in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 09:24:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838599#M294793</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-04-28T09:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to get max date from script depending upon current selection of calender date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838600#M294794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use below script it will give max date &lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MATNR,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Qty&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;max(BatchDate) as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;BatchDate resident table&amp;nbsp; group by&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MATNR,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Qty;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and let me know if it is working or not or else provide data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Manju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 09:29:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838600#M294794</guid>
      <dc:creator />
      <dc:date>2015-04-28T09:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get max date from script depending upon current selection of calender date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838601#M294795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;cane we handle it in expression side&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 09:33:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838601#M294795</guid>
      <dc:creator />
      <dc:date>2015-04-28T09:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get max date from script depending upon current selection of calender date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838602#M294796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another method to fetch the min/max value from a field: &lt;A href="http://qlikviewcookbook.com/2013/09/fastest-method-to-read-maxfield-from-a-qvd/" title="http://qlikviewcookbook.com/2013/09/fastest-method-to-read-maxfield-from-a-qvd/"&gt;“Fastest” Method to Read max(field) From a QVD | Qlikview Cookbook&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 10:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838602#M294796</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-04-28T10:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to get max date from script depending upon current selection of calender date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838603#M294797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check this and let me know if you have any questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 11:44:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838603#M294797</guid>
      <dc:creator>NareshGuntur</dc:creator>
      <dc:date>2015-04-28T11:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get max date from script depending upon current selection of calender date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838604#M294798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will work for irrespectiove of current selection.&lt;/P&gt;&lt;P&gt;It means in your solution it will give me 25 Apr 2015 but if i select Jan 2015 then in that case I want first record i.e,&lt;/P&gt;&lt;P&gt;22 Jan 2015&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 12:40:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838604#M294798</guid>
      <dc:creator />
      <dc:date>2015-04-28T12:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to get max date from script depending upon current selection of calender date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838605#M294799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try the document which I have given? It is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 18:00:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838605#M294799</guid>
      <dc:creator>NareshGuntur</dc:creator>
      <dc:date>2015-04-28T18:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get max date from script depending upon current selection of calender date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838606#M294800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;Naresh,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't get any document can you send it again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 10:00:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838606#M294800</guid>
      <dc:creator />
      <dc:date>2015-04-29T10:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get max date from script depending upon current selection of calender date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838607#M294801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 10:03:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838607#M294801</guid>
      <dc:creator>NareshGuntur</dc:creator>
      <dc:date>2015-04-29T10:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to get max date from script depending upon current selection of calender date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838608#M294802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Naresh ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;still i cant get any attachment.&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/85328_Untitled.png" style="height: 349px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 10:11:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838608#M294802</guid>
      <dc:creator />
      <dc:date>2015-04-29T10:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get max date from script depending upon current selection of calender date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838609#M294803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me post it here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data is taken from your initial post&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Script start&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test1:&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;MATNR, KEY, BatchDate, Qty&lt;/P&gt;&lt;P&gt;1, 123, 22/1/2014, 20&lt;/P&gt;&lt;P&gt;1, 456, 18/2/2015, 20&lt;/P&gt;&lt;P&gt;1, 789, 24/4/2015, 20&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test2:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;Year(date#(BatchDate,'DD/MM/YYYY')) as Year,&lt;/P&gt;&lt;P&gt;Month(date#(BatchDate,'DD/MM/YYYY')) as Month&lt;/P&gt;&lt;P&gt;Resident Test1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set newdate = "date(MakeDate(Year,Month),'DD/MM/YYYY')";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Script end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression in chart: &lt;STRONG&gt;sum(if(Month=month(date#(BatchDate,'DD/MM/YYYY')) and Year = Year(date#(BatchDate,'DD/MM/YYYY')), Qty))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 10:17:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838609#M294803</guid>
      <dc:creator>NareshGuntur</dc:creator>
      <dc:date>2015-04-29T10:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to get max date from script depending upon current selection of calender date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838610#M294804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;table&lt;/P&gt;&lt;P&gt;;-----&lt;/P&gt;&lt;P&gt;tab:&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/12/2012&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/12/2013&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3/12/2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tab1:&lt;/P&gt;&lt;P&gt;load * resident tab(table name) order by B ( B is field of above table) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let maxdate = peek( ' B (field name ) ', 0 (position of field value ) , ' tab1 (table name ');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 10:26:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838610#M294804</guid>
      <dc:creator />
      <dc:date>2015-04-29T10:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to get max date from script depending upon current selection of calender date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838611#M294805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Naresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankx for solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in your solution, you did batch date as a calender date but I can't do like that because my Calender is depending upon posting date. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I cant't make batchdate as calender date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you have another solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 10:28:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838611#M294805</guid>
      <dc:creator />
      <dc:date>2015-04-29T10:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to get max date from script depending upon current selection of calender date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838612#M294806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need not use Batch Date for Calendar date. As I didn't have calendar for demo, I just used Batch Date. You can use your normal calendar for Year and Month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 10:39:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838612#M294806</guid>
      <dc:creator>NareshGuntur</dc:creator>
      <dc:date>2015-04-29T10:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to get max date from script depending upon current selection of calender date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838613#M294807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Naresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ya it's fine but I have to handle 2 more conditions in this solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) If I have 2 date in same month suppose in Feb I have 2 date i.e, 18 Feb and 21 Feb then i want only 21 Feb as it is max date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) If I have selected 2015 Jan and there is no data for Jan then it should go to backtrack i.e, go to previous month and select max date from previous month date as batch date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So can we handle these condition in your solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes can you provide me solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 10:55:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-max-date-from-script-depending-upon-current-selection/m-p/838613#M294807</guid>
      <dc:creator />
      <dc:date>2015-04-29T10:55:05Z</dc:date>
    </item>
  </channel>
</rss>

