<?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: Optimized code to fetch the maximum date from a qvd in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Optimized-code-to-fetch-the-maximum-date-from-a-qvd/m-p/1634694#M732829</link>
    <description>&lt;P&gt;Looks like Max(Date) will consume lot of time.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Oct 2019 07:38:12 GMT</pubDate>
    <dc:creator>anushahegde</dc:creator>
    <dc:date>2019-10-14T07:38:12Z</dc:date>
    <item>
      <title>Optimized code to fetch the maximum date from a qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Optimized-code-to-fetch-the-maximum-date-from-a-qvd/m-p/1634655#M732825</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a qvd containing 618,994,678 records. I did the optimized qvd load and now I want to fetch the maximum date from this qvd. what is the best way to do it so that it consumes less time to give the maximum date?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Anusha&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:13:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimized-code-to-fetch-the-maximum-date-from-a-qvd/m-p/1634655#M732825</guid>
      <dc:creator>anushahegde</dc:creator>
      <dc:date>2024-11-16T02:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Optimized code to fetch the maximum date from a qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Optimized-code-to-fetch-the-maximum-date-from-a-qvd/m-p/1634667#M732827</link>
      <description>&lt;P&gt;Try Like below:&lt;/P&gt;&lt;P&gt;Filterdate:&lt;/P&gt;&lt;P&gt;Load&amp;nbsp;&lt;BR /&gt;date(Max(DATE_COLUMN),'DD/MM/YYYY') as maxdate&lt;/P&gt;&lt;P&gt;from QVD;&lt;/P&gt;&lt;P&gt;SET vmaxdate=peek('maxdate', 0, 'Filterdate');&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 06:13:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimized-code-to-fetch-the-maximum-date-from-a-qvd/m-p/1634667#M732827</guid>
      <dc:creator>viveksingh</dc:creator>
      <dc:date>2019-10-14T06:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Optimized code to fetch the maximum date from a qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Optimized-code-to-fetch-the-maximum-date-from-a-qvd/m-p/1634694#M732829</link>
      <description>&lt;P&gt;Looks like Max(Date) will consume lot of time.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 07:38:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimized-code-to-fetch-the-maximum-date-from-a-qvd/m-p/1634694#M732829</guid>
      <dc:creator>anushahegde</dc:creator>
      <dc:date>2019-10-14T07:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Optimized code to fetch the maximum date from a qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Optimized-code-to-fetch-the-maximum-date-from-a-qvd/m-p/1634787#M732831</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i use this code for my timeline&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD num(floor(Max( [newdatefield] ))) as DataMax,&lt;BR /&gt;num(floor(Min( [newdatefield] ))) as DataMin;&lt;BR /&gt;LOAD FieldValue('yourdatefield', recno()) as [newdatefield]&lt;BR /&gt;AUTOGENERATE (FieldValueCount('yourdatefield'));&lt;/P&gt;&lt;P&gt;LET vDataMin = Peek('DataMin',-1,'Temp');&lt;BR /&gt;LET vDataMax = Peek('DataMax',-1,'Temp');&lt;/P&gt;&lt;P&gt;it's way faster than simple max() applied on the date field.&lt;/P&gt;&lt;P&gt;hope it helps,&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 11:08:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimized-code-to-fetch-the-maximum-date-from-a-qvd/m-p/1634787#M732831</guid>
      <dc:creator>andrei_delta</dc:creator>
      <dc:date>2019-10-14T11:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Optimized code to fetch the maximum date from a qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Optimized-code-to-fetch-the-maximum-date-from-a-qvd/m-p/1634803#M732832</link>
      <description>&lt;P&gt;temp:&lt;/P&gt;&lt;P&gt;LOAD DATE_COLUMN&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[S00.QVD]&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;MinMaxDate:&lt;/P&gt;&lt;P&gt;Load min(DATE_COLUMN) as MinDate,&lt;/P&gt;&lt;P&gt;max(DATE_COLUMN) as MaxDate;&lt;/P&gt;&lt;P&gt;Load FieldValue('DATE_COLUMN',IterNo()) as DATE_COLUMN&lt;/P&gt;&lt;P&gt;autogenerate(1)&lt;/P&gt;&lt;P&gt;while not IsNull(FieldValue('DATE_COLUMN',Iterno()));&lt;/P&gt;&lt;P&gt;Drop Table temp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 11:42:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimized-code-to-fetch-the-maximum-date-from-a-qvd/m-p/1634803#M732832</guid>
      <dc:creator>Victor_Alumanah</dc:creator>
      <dc:date>2019-10-14T11:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Optimized code to fetch the maximum date from a qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Optimized-code-to-fetch-the-maximum-date-from-a-qvd/m-p/1638014#M732833</link>
      <description>&lt;P&gt;Anusha, If the goal is to load the QVD file optimized, then do that into a Temp table as the last poster recommended and then run your addtional code against the Temp table and once you have what you need drop the Temp table from the data model.&amp;nbsp; If Victor's post was what you used to solve things, please remember to give credit and let others know things worked by using the Accept as Solution button on the post(s) that helped you get to your solution.&amp;nbsp; If you did something else, consider posting that and then mark it, and if you are still working on things, update the post with where you are with things.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 19:07:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimized-code-to-fetch-the-maximum-date-from-a-qvd/m-p/1638014#M732833</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-10-21T19:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Optimized code to fetch the maximum date from a qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Optimized-code-to-fetch-the-maximum-date-from-a-qvd/m-p/1638024#M732834</link>
      <description>&lt;P&gt;&lt;A href="https://qlikviewcookbook.com/2013/09/fastest-method-to-read-maxfield-from-a-qvd/" target="_blank"&gt;https://qlikviewcookbook.com/2013/09/fastest-method-to-read-maxfield-from-a-qvd/&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Temp:
LOAD Max(Date) AS MaxDate FROM 'YourPath.qvd' (qvd);

LET vMaxDate = Num(Peek('MaxDate', 0, 'Temp'));

DROP TABLE Temp;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 21 Oct 2019 19:37:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimized-code-to-fetch-the-maximum-date-from-a-qvd/m-p/1638024#M732834</guid>
      <dc:creator>JGMDataAnalysis</dc:creator>
      <dc:date>2019-10-21T19:37:50Z</dc:date>
    </item>
  </channel>
</rss>

