<?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 EG - Using query builder, how to get row with latest date value? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-Using-query-builder-how-to-get-row-with-latest-date-value/m-p/24633#M3723</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On the Select Data tab, choose &lt;SPAN style="background-color: #eef4f9;"&gt;Vendor# and Invoice# and &lt;SPAN style="background-color: #eef4f9;"&gt;Last_updated.&amp;nbsp; In the &lt;SPAN style="background-color: #eef4f9;"&gt;Last_updated row, select MAX from the Summary column.&amp;nbsp; EG will automatically do summarization of the latest date by Vendor# and Invoice#.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Mar 2012 20:29:43 GMT</pubDate>
    <dc:creator>Technolero</dc:creator>
    <dc:date>2012-03-07T20:29:43Z</dc:date>
    <item>
      <title>EG - Using query builder, how to get row with latest date value?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-Using-query-builder-how-to-get-row-with-latest-date-value/m-p/24632#M3722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The data I am retrieving in the EG project has multiple rows for a 'Vendor# &amp;amp;&amp;nbsp; 'Invoice#'.&amp;nbsp; Each of these rows has a column with a date field 'Last_updated'.&amp;nbsp; I need to be able to retrieve the row for this Vendor#/Invoice# with the latest date in&amp;nbsp; the 'Last_updated'.&amp;nbsp; I am trying to build this using EG query builder but I do not see a function that I can use to accomplish this. Any suggestions on how to accomplish this in EG?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 20:06:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-Using-query-builder-how-to-get-row-with-latest-date-value/m-p/24632#M3722</guid>
      <dc:creator>ncsthbell</dc:creator>
      <dc:date>2012-03-07T20:06:55Z</dc:date>
    </item>
    <item>
      <title>EG - Using query builder, how to get row with latest date value?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-Using-query-builder-how-to-get-row-with-latest-date-value/m-p/24633#M3723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On the Select Data tab, choose &lt;SPAN style="background-color: #eef4f9;"&gt;Vendor# and Invoice# and &lt;SPAN style="background-color: #eef4f9;"&gt;Last_updated.&amp;nbsp; In the &lt;SPAN style="background-color: #eef4f9;"&gt;Last_updated row, select MAX from the Summary column.&amp;nbsp; EG will automatically do summarization of the latest date by Vendor# and Invoice#.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 20:29:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-Using-query-builder-how-to-get-row-with-latest-date-value/m-p/24633#M3723</guid>
      <dc:creator>Technolero</dc:creator>
      <dc:date>2012-03-07T20:29:43Z</dc:date>
    </item>
    <item>
      <title>EG - Using query builder, how to get row with latest date value?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-Using-query-builder-how-to-get-row-with-latest-date-value/m-p/24634#M3724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; This works if I only include the Vendor &amp;amp; Invoice number.&amp;nbsp; I have many more columns of data that I need, the Vendor &amp;amp; Invoice number are just keys that I would be looking to group by.&amp;nbsp; I put the other columns on my select tab and since it is looking at each column on the select, I did not get what I need.&amp;nbsp; I should have mentioned that I have other data I need on the select tab and the 'grouping' used for finding the lastest dated row would be by vendor# and invoice#.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 20:51:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-Using-query-builder-how-to-get-row-with-latest-date-value/m-p/24634#M3724</guid>
      <dc:creator>ncsthbell</dc:creator>
      <dc:date>2012-03-07T20:51:06Z</dc:date>
    </item>
    <item>
      <title>EG - Using query builder, how to get row with latest date value?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-Using-query-builder-how-to-get-row-with-latest-date-value/m-p/24635#M3725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would run the query that I described above, then use that output to join back to your original data set to select the rows that match Vendor#, Invoice#, and Last_Updated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 20:59:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-Using-query-builder-how-to-get-row-with-latest-date-value/m-p/24635#M3725</guid>
      <dc:creator>Technolero</dc:creator>
      <dc:date>2012-03-07T20:59:15Z</dc:date>
    </item>
    <item>
      <title>EG - Using query builder, how to get row with latest date value?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-Using-query-builder-how-to-get-row-with-latest-date-value/m-p/24636#M3726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks, I'll try that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 21:00:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-Using-query-builder-how-to-get-row-with-latest-date-value/m-p/24636#M3726</guid>
      <dc:creator>ncsthbell</dc:creator>
      <dc:date>2012-03-07T21:00:55Z</dc:date>
    </item>
  </channel>
</rss>

