<?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: Loading only the most recent date from the date field in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Loading-only-the-most-recent-date-from-the-date-field/m-p/1189661#M22299</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if you don't group by Part Number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Part Number, Extraction Date, Quantity&lt;/P&gt;&lt;P&gt;PN1, 42632, 1000000&lt;/P&gt;&lt;P&gt;PN1, 42620, 750000&lt;/P&gt;&lt;P&gt;PN2, 42625, 2000000&lt;/P&gt;&lt;P&gt;PN3, 42632, 1500000&lt;/P&gt;&lt;P&gt;PN4, 42632, 250000&lt;/P&gt;&lt;P&gt;PN4, 42600, 150000&lt;/P&gt;&lt;P&gt;PN5, 42555, 1250000&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INNER JOIN &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;max([Extraction Date]) as [Extraction Date]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RESIDENT Temp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Sep 2016 18:30:13 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-09-21T18:30:13Z</dc:date>
    <item>
      <title>Loading only the most recent date from the date field</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-only-the-most-recent-date-from-the-date-field/m-p/1189660#M22298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Howdy Qlikers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do know there are other questions out there like this, but as of yet I haven't come across one that quite gets to what I need to do, so please point me to the right thread if you know of it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have data that looks something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;Part Number, Extraction Date, Quantity&lt;/P&gt;&lt;P&gt;PN1, 42632, 1000000&lt;/P&gt;&lt;P&gt;PN1, 42620, 750000&lt;/P&gt;&lt;P&gt;PN2, 42625, 2000000&lt;/P&gt;&lt;P&gt;PN3, 42632, 1500000&lt;/P&gt;&lt;P&gt;PN4, 42632, 250000&lt;/P&gt;&lt;P&gt;PN4, 42600, 150000&lt;/P&gt;&lt;P&gt;PN5, 42555, 1250000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am interested in loading only the rows that fall under the most recent extraction date, in this particular case, only those with the value 42632.&amp;nbsp; However, I'd like to make the app dynamic as new extracts get added to the database.&amp;nbsp; The "filter" that I currently have on my data load does not quite do this (code as follows):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;filter:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;inner keep load&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;"Part Number",&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;max([Extraction Date]) as [Extraction Date]&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;group by "Part Number";&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;drop table filter;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;Results on Sample table "Temp" using Above Code:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;PN1, 42632, 1000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; padding-left: 30px;"&gt;PN2, 42625, 2000000&lt;/P&gt;&lt;P style="font-size: 13.3333px; padding-left: 30px;"&gt;PN3, 42632, 1500000&lt;/P&gt;&lt;P style="font-size: 13.3333px; padding-left: 30px;"&gt;PN4, 42632, 250000&lt;/P&gt;&lt;P style="font-size: 13.3333px; padding-left: 30px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;PN5, 42555, 1250000&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; padding-left: 30px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Desired Results:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; padding-left: 30px;"&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;PN1, 42632, 1000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;PN3, 42632, 1500000&lt;/P&gt;&lt;P style="font-size: 13.3333px; padding-left: 30px;"&gt;PN4, 42632, 250000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help you lovely people could provide would be most appreciated. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 15:10:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-only-the-most-recent-date-from-the-date-field/m-p/1189660#M22298</guid>
      <dc:creator />
      <dc:date>2016-09-21T15:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Loading only the most recent date from the date field</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-only-the-most-recent-date-from-the-date-field/m-p/1189661#M22299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if you don't group by Part Number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Part Number, Extraction Date, Quantity&lt;/P&gt;&lt;P&gt;PN1, 42632, 1000000&lt;/P&gt;&lt;P&gt;PN1, 42620, 750000&lt;/P&gt;&lt;P&gt;PN2, 42625, 2000000&lt;/P&gt;&lt;P&gt;PN3, 42632, 1500000&lt;/P&gt;&lt;P&gt;PN4, 42632, 250000&lt;/P&gt;&lt;P&gt;PN4, 42600, 150000&lt;/P&gt;&lt;P&gt;PN5, 42555, 1250000&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INNER JOIN &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;max([Extraction Date]) as [Extraction Date]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RESIDENT Temp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 18:30:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-only-the-most-recent-date-from-the-date-field/m-p/1189661#M22299</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-09-21T18:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Loading only the most recent date from the date field</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-only-the-most-recent-date-from-the-date-field/m-p/1189662#M22300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked!&amp;nbsp; Overlooked the simple solution.&amp;nbsp; I think I was expecting there to an error without a 'group by' statement in there for some reason.&amp;nbsp; Thank you much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 19:45:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-only-the-most-recent-date-from-the-date-field/m-p/1189662#M22300</guid>
      <dc:creator />
      <dc:date>2016-09-21T19:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Loading only the most recent date from the date field</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-only-the-most-recent-date-from-the-date-field/m-p/1189663#M22301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You only need to list all fields in a group by clause that are not included in an aggregation function.&lt;/P&gt;&lt;P&gt;If you don't have any other fields besides the one in the Max() function, no need for a group by clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The aggregation scope is then the full input table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 20:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-only-the-most-recent-date-from-the-date-field/m-p/1189663#M22301</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-09-21T20:11:51Z</dc:date>
    </item>
  </channel>
</rss>

