<?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: Get max date from the script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-max-date-from-the-script/m-p/853559#M655705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try creating a temp table in the script ,get the max date then drop it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/**Creating a temp table to get max date**/&lt;/P&gt;&lt;P&gt;ALL_SALEDATE:&lt;BR /&gt;Load FieldValue('DateField',IterNo()) as DateField_Max_Date_Time&lt;BR /&gt;AutoGenerate(1)&lt;BR /&gt;While not Isnull(FieldValue('DateField',IterNo()));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAX_SDATE:&lt;BR /&gt;Load Max(DateField_Max_Date_Time) as Your_Max_Date&lt;/P&gt;&lt;P&gt;resident ALL_SALEDATE:;&lt;BR /&gt;Drop table ALL_SALEDATE; //no longer needed&lt;BR /&gt;exit script;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 May 2015 18:57:38 GMT</pubDate>
    <dc:creator>swarup_malli</dc:creator>
    <dc:date>2015-05-26T18:57:38Z</dc:date>
    <item>
      <title>Get max date from the script?</title>
      <link>https://community.qlik.com/t5/QlikView/Get-max-date-from-the-script/m-p/853557#M655703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to pick the max(saleDate ) from the script, not from the the frontend variable using max(salesdate) because then it becomes dynamic .&lt;/P&gt;&lt;P&gt;It should not change, it should should only after reload, other remain static.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My calender has more than 100 million records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get the max date without compromising the performance of my dashboard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 18:54:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-max-date-from-the-script/m-p/853557#M655703</guid>
      <dc:creator />
      <dc:date>2015-05-26T18:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Get max date from the script?</title>
      <link>https://community.qlik.com/t5/QlikView/Get-max-date-from-the-script/m-p/853558#M655704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;max(saleDate )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FROM yourqvd.qvd(qvd)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 18:56:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-max-date-from-the-script/m-p/853558#M655704</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-05-26T18:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get max date from the script?</title>
      <link>https://community.qlik.com/t5/QlikView/Get-max-date-from-the-script/m-p/853559#M655705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try creating a temp table in the script ,get the max date then drop it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/**Creating a temp table to get max date**/&lt;/P&gt;&lt;P&gt;ALL_SALEDATE:&lt;BR /&gt;Load FieldValue('DateField',IterNo()) as DateField_Max_Date_Time&lt;BR /&gt;AutoGenerate(1)&lt;BR /&gt;While not Isnull(FieldValue('DateField',IterNo()));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAX_SDATE:&lt;BR /&gt;Load Max(DateField_Max_Date_Time) as Your_Max_Date&lt;/P&gt;&lt;P&gt;resident ALL_SALEDATE:;&lt;BR /&gt;Drop table ALL_SALEDATE; //no longer needed&lt;BR /&gt;exit script;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 18:57:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-max-date-from-the-script/m-p/853559#M655705</guid>
      <dc:creator>swarup_malli</dc:creator>
      <dc:date>2015-05-26T18:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get max date from the script?</title>
      <link>https://community.qlik.com/t5/QlikView/Get-max-date-from-the-script/m-p/853560#M655706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Create a table that stores Max date and then use the Peek function to convert field into variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 19:05:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-max-date-from-the-script/m-p/853560#M655706</guid>
      <dc:creator />
      <dc:date>2015-05-26T19:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Get max date from the script?</title>
      <link>https://community.qlik.com/t5/QlikView/Get-max-date-from-the-script/m-p/853561#M655707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YourTable:&lt;/P&gt;&lt;P&gt;load date(makedate(2015) + floor(rand()*1000)) as SaleDate AutoGenerate 100;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;MaxTable: &lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;load max(SaleDate) as MaxSaleDate Resident &lt;SPAN style="font-size: 13.3333330154419px;"&gt;YourTable&lt;/SPAN&gt;;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;LET vMaxSaleDate = date(Peek('MaxSaleDate'));&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop table MaxTable;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 19:15:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-max-date-from-the-script/m-p/853561#M655707</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-05-26T19:15:20Z</dc:date>
    </item>
  </channel>
</rss>

