<?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: find the 100 oldest dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/find-the-100-oldest-dates/m-p/394683#M147178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;See the example.&lt;/P&gt;&lt;P&gt;Hope this help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Apr 2013 13:09:44 GMT</pubDate>
    <dc:creator>spividori</dc:creator>
    <dc:date>2013-04-24T13:09:44Z</dc:date>
    <item>
      <title>find the 100 oldest dates</title>
      <link>https://community.qlik.com/t5/QlikView/find-the-100-oldest-dates/m-p/394682#M147177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got a qvd file with amongst others a field with dates(dd-mm-yyyy).&lt;/P&gt;&lt;P&gt;I want to find the 100 oldest dates - how do I solve that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 11:10:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/find-the-100-oldest-dates/m-p/394682#M147177</guid>
      <dc:creator />
      <dc:date>2013-04-24T11:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: find the 100 oldest dates</title>
      <link>https://community.qlik.com/t5/QlikView/find-the-100-oldest-dates/m-p/394683#M147178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;See the example.&lt;/P&gt;&lt;P&gt;Hope this help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 13:09:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/find-the-100-oldest-dates/m-p/394683#M147178</guid>
      <dc:creator>spividori</dc:creator>
      <dc:date>2013-04-24T13:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: find the 100 oldest dates</title>
      <link>https://community.qlik.com/t5/QlikView/find-the-100-oldest-dates/m-p/394684#M147179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depends on what you want to do. If you want to keep only the oldest 100 from the qvd you can first load them and then load the first 100 ordered descending by date:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;load * from myqvd.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;first 100&lt;/P&gt;&lt;P&gt;load * resident Temp order by mydate desc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to keep all the records you could instead add a flag:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;load *, if(rowno()&amp;lt;=100,1,0) as fOldest100&lt;/P&gt;&lt;P&gt;resident Temp order by mydate desc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to find the oldest 100 in a chart you can try using the rank() function. Or if you're using QV11 perhaps Dimension Limits. Or something like if(mydate&amp;lt;=min(mydate,100),mydate)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 14:11:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/find-the-100-oldest-dates/m-p/394684#M147179</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-04-24T14:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: find the 100 oldest dates</title>
      <link>https://community.qlik.com/t5/QlikView/find-the-100-oldest-dates/m-p/394685#M147180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *, if(rowno()&amp;lt;=100,1,0) as fOldest100&lt;/P&gt;&lt;P&gt;resident Temp order by mydate desc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but get an error "Table not found"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably just me - I changed mydate to myfieldname and ran the load - but same result&lt;/P&gt;&lt;P&gt;is there something with the rowno???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 11:38:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/find-the-100-oldest-dates/m-p/394685#M147180</guid>
      <dc:creator />
      <dc:date>2013-04-29T11:38:53Z</dc:date>
    </item>
  </channel>
</rss>

