<?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: Getting max date value in SAS VA in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Getting-max-date-value-in-SAS-VA/m-p/455340#M9944</link>
    <description>&lt;P&gt;Hi Rahul,&lt;BR /&gt;&lt;BR /&gt;You can assign your date variable to the Category role of the button bar. It is not necessary to convert it to a category data type.&lt;BR /&gt;&lt;BR /&gt;Sam&lt;/P&gt;</description>
    <pubDate>Wed, 18 Apr 2018 17:56:19 GMT</pubDate>
    <dc:creator>Sam_SAS</dc:creator>
    <dc:date>2018-04-18T17:56:19Z</dc:date>
    <item>
      <title>Getting max date value in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Getting-max-date-value-in-SAS-VA/m-p/455076#M9933</link>
      <description>&lt;P&gt;Dear Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have two variables ID and Date. I need to get a max date value, tried everything but not able to find a way so please help me.&lt;/P&gt;
&lt;TABLE width="139"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;ID&lt;/TD&gt;
&lt;TD width="75"&gt;dates&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;B0001&lt;/TD&gt;
&lt;TD&gt;01/17/2018&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;B0002&lt;/TD&gt;
&lt;TD&gt;11/20/2017&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;B0003&lt;/TD&gt;
&lt;TD&gt;01/16/2018&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;B0004&lt;/TD&gt;
&lt;TD&gt;11/19/2017&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;B0005&lt;/TD&gt;
&lt;TD&gt;01/15/2018&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;B0006&lt;/TD&gt;
&lt;TD&gt;11/18/2017&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;B0007&lt;/TD&gt;
&lt;TD&gt;01/14/2018&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;B0008&lt;/TD&gt;
&lt;TD&gt;11/17/2017&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;B0009&lt;/TD&gt;
&lt;TD&gt;01/13/2018&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;B0010&lt;/TD&gt;
&lt;TD&gt;11/16/2017&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Wed, 18 Apr 2018 09:24:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Getting-max-date-value-in-SAS-VA/m-p/455076#M9933</guid>
      <dc:creator>Rahul_SAS</dc:creator>
      <dc:date>2018-04-18T09:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Getting max date value in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Getting-max-date-value-in-SAS-VA/m-p/455103#M9934</link>
      <description>&lt;P&gt;What do you want to do more specific?&lt;BR /&gt;The easiest way is to add a list table and then sort in descending date order and look at the first row &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 10:56:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Getting-max-date-value-in-SAS-VA/m-p/455103#M9934</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2018-04-18T10:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Getting max date value in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Getting-max-date-value-in-SAS-VA/m-p/455107#M9935</link>
      <description>&lt;P&gt;Hi Fredrike,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My requirement is to calculate and create a data item which should contain the latest data i.e. 17 Jan 2018 in the given sample data.&lt;/P&gt;
&lt;P&gt;That data item will be used in a button bar to highlight Data Refreshed On.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope, I am making sense here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 11:12:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Getting-max-date-value-in-SAS-VA/m-p/455107#M9935</guid>
      <dc:creator>Rahul_SAS</dc:creator>
      <dc:date>2018-04-18T11:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Getting max date value in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Getting-max-date-value-in-SAS-VA/m-p/455249#M9938</link>
      <description>&lt;P&gt;Hello Rahul,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a previous discussion about max date in VA:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Visual-Analytics/About-getting-the-max-date-in-a-table-field/m-p/204634/highlight/true#M1904" target="_blank"&gt;https://communities.sas.com/t5/SAS-Visual-Analytics/About-getting-the-max-date-in-a-table-field/m-p/204634/highlight/true#M1904&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you just want to display the max date in your report, you can use a rank to select the "top 1" date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need to perform any calculations using the max date, you will need to create a column in your data query using the MAX() function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also in 8.2 or 7.4, you can display the timestamp of the most recent update to the data source in a Text object. (Search the doc for "Dynamic Text") But this is not necessarily the same thing as the max date in your data and I believe you cannot do any calculations with this value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let us know if this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 15:29:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Getting-max-date-value-in-SAS-VA/m-p/455249#M9938</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2018-04-18T15:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Getting max date value in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Getting-max-date-value-in-SAS-VA/m-p/455250#M9939</link>
      <description>&lt;P&gt;Oki!&lt;/P&gt;
&lt;P&gt;Create a new calculated item, use your date&amp;nbsp;variabel and "treatAs" number. Set aggregation to max.&lt;/P&gt;
&lt;P&gt;Add a button bar and set your date variabel as category, then rank and pick the highest 1 from your calculated variable.&lt;/P&gt;
&lt;P&gt;This will make your button bar show only the highest date in your data.&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 15:24:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Getting-max-date-value-in-SAS-VA/m-p/455250#M9939</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2018-04-18T15:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting max date value in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Getting-max-date-value-in-SAS-VA/m-p/455309#M9941</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;SPAN&gt;Fredrik,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;please guide me how to set a date variable to category variable.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;thnx&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 17:23:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Getting-max-date-value-in-SAS-VA/m-p/455309#M9941</guid>
      <dc:creator>Rahul_SAS</dc:creator>
      <dc:date>2018-04-18T17:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Getting max date value in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Getting-max-date-value-in-SAS-VA/m-p/455340#M9944</link>
      <description>&lt;P&gt;Hi Rahul,&lt;BR /&gt;&lt;BR /&gt;You can assign your date variable to the Category role of the button bar. It is not necessary to convert it to a category data type.&lt;BR /&gt;&lt;BR /&gt;Sam&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 17:56:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Getting-max-date-value-in-SAS-VA/m-p/455340#M9944</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2018-04-18T17:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Getting max date value in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Getting-max-date-value-in-SAS-VA/m-p/455562#M9954</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13794"&gt;@Sam_SAS&lt;/a&gt;&amp;nbsp;says assign it as category role of the button bar, I translated my swedish to english, my bad &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 12:22:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Getting-max-date-value-in-SAS-VA/m-p/455562#M9954</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2018-04-19T12:22:52Z</dc:date>
    </item>
  </channel>
</rss>

