<?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: About getting the max date in a table field in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/About-getting-the-max-date-in-a-table-field/m-p/204640#M1910</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks SAm!&lt;/P&gt;&lt;P&gt;As a quick solution I did what you are suggesting, I made a ranking.&lt;/P&gt;&lt;P&gt;I 'll try&amp;nbsp; the TreatAs operator.&lt;/P&gt;&lt;P&gt;Greetings.&lt;/P&gt;&lt;P&gt;Silvia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Apr 2015 13:10:33 GMT</pubDate>
    <dc:creator>SilinBorro</dc:creator>
    <dc:date>2015-04-29T13:10:33Z</dc:date>
    <item>
      <title>About getting the max date in a table field</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/About-getting-the-max-date-in-a-table-field/m-p/204634#M1904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I've got a &lt;STRONG&gt;date field in my table&lt;/STRONG&gt; and I need to get&lt;STRONG&gt; the most recent date&lt;/STRONG&gt; in it.&lt;/P&gt;&lt;P&gt;I'm working in SAS VA 7.1 and tried creating an item field using the MAX function but gives me error.&lt;/P&gt;&lt;P&gt;any idea how can I get the max date ?&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;Silvia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 14:22:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/About-getting-the-max-date-in-a-table-field/m-p/204634#M1904</guid>
      <dc:creator>SilinBorro</dc:creator>
      <dc:date>2015-04-27T14:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: About getting the max date in a table field</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/About-getting-the-max-date-in-a-table-field/m-p/204635#M1905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Show use what you did and the error.&lt;/P&gt;&lt;P&gt;Also, make sure your dates are SAS date values and not a character variable that looks like a date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 14:53:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/About-getting-the-max-date-in-a-table-field/m-p/204635#M1905</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-04-27T14:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: About getting the max date in a table field</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/About-getting-the-max-date-in-a-table-field/m-p/204636#M1906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;fecha_ingreso is a date field (datetime)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Snap 2015-04-27 at 13.24.06.jpg" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/10169_Snap 2015-04-27 at 13.24.06.jpg" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 16:28:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/About-getting-the-max-date-in-a-table-field/m-p/204636#M1906</guid>
      <dc:creator>SilinBorro</dc:creator>
      <dc:date>2015-04-27T16:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: About getting the max date in a table field</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/About-getting-the-max-date-in-a-table-field/m-p/204637#M1907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think what Silvia is trying to do is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="max.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/10170_max.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Max operator expects a measure rather than a date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 17:30:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/About-getting-the-max-date-in-a-table-field/m-p/204637#M1907</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2015-04-27T17:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: About getting the max date in a table field</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/About-getting-the-max-date-in-a-table-field/m-p/204638#M1908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you just want to display the most recent date in a table, the simplest solution is to sort a table in descending order by your date column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think there is an easy way in the VA expression syntax to calculate the most recent date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the TreatAs operator in a calculated measure to convert the date into a numeric, and then create an aggregated measure using the Max() operator on that calculated item. This will give you the most recent date, but the date is no longer in date form. It will look like this: 19833.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 21:39:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/About-getting-the-max-date-in-a-table-field/m-p/204638#M1908</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2015-04-27T21:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: About getting the max date in a table field</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/About-getting-the-max-date-in-a-table-field/m-p/204639#M1909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Silvia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to show Max date in VA, you have to create Max date column in SAS table using MAX function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per sam you can Calculate Max date using calculated items(Treat As) and Aggregated Measures(_Max_). but the result will be in sas days.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Teja Surapaneni &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 05:14:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/About-getting-the-max-date-in-a-table-field/m-p/204639#M1909</guid>
      <dc:creator>TejaSurapaneni</dc:creator>
      <dc:date>2015-04-28T05:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: About getting the max date in a table field</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/About-getting-the-max-date-in-a-table-field/m-p/204640#M1910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks SAm!&lt;/P&gt;&lt;P&gt;As a quick solution I did what you are suggesting, I made a ranking.&lt;/P&gt;&lt;P&gt;I 'll try&amp;nbsp; the TreatAs operator.&lt;/P&gt;&lt;P&gt;Greetings.&lt;/P&gt;&lt;P&gt;Silvia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 13:10:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/About-getting-the-max-date-in-a-table-field/m-p/204640#M1910</guid>
      <dc:creator>SilinBorro</dc:creator>
      <dc:date>2015-04-29T13:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: About getting the max date in a table field</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/About-getting-the-max-date-in-a-table-field/m-p/204641#M1911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Teja!.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 13:12:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/About-getting-the-max-date-in-a-table-field/m-p/204641#M1911</guid>
      <dc:creator>SilinBorro</dc:creator>
      <dc:date>2015-04-29T13:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: About getting the max date in a table field</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/About-getting-the-max-date-in-a-table-field/m-p/354215#M7019</link>
      <description>&lt;P&gt;so what is the final solution of showing the MAX(Date)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i can do the treat as and max and get a result.&lt;/P&gt;&lt;P&gt;how do i get that back to a date?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 17:47:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/About-getting-the-max-date-in-a-table-field/m-p/354215#M7019</guid>
      <dc:creator>mhamlett</dc:creator>
      <dc:date>2017-04-27T17:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: About getting the max date in a table field</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/About-getting-the-max-date-in-a-table-field/m-p/354436#M7028</link>
      <description>&lt;P&gt;If you want top see the date in a table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;use the treat as function to create a numeric version&lt;/LI&gt;&lt;LI&gt;create a top 1 rank on the numeric version but put the actual date value into the table&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8617i221F27E561103DE5/image-size/medium?v=1.0&amp;amp;px=-1" border="0" alt="dateranker.GIF" title="dateranker.GIF" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8616i1837EBC91A66425A/image-size/medium?v=1.0&amp;amp;px=-1" border="0" alt="rank.GIF" title="rank.GIF" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8618i2FD1F5873E7D03C1/image-size/medium?v=1.0&amp;amp;px=-1" border="0" alt="date table.GIF" title="date table.GIF" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the example above I have a second column showing when the data was refereshed by sas, to do this I just added column in my underlying data query which inserts todays date against every row.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 12:18:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/About-getting-the-max-date-in-a-table-field/m-p/354436#M7028</guid>
      <dc:creator>itchyeyeballs</dc:creator>
      <dc:date>2017-04-28T12:18:25Z</dc:date>
    </item>
  </channel>
</rss>

