<?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: how to get latest date using mdx in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-get-latest-date-using-mdx/m-p/38132#M4649</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
MDX is almost like an SQL syntax.&lt;BR /&gt;
You could try to get the max of the date.&lt;BR /&gt;
&lt;BR /&gt;
sample: &lt;BR /&gt;
 &lt;BR /&gt;
select max(date)as date from source;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
or&lt;BR /&gt;
&lt;BR /&gt;
select distinct(max (date_column)) from table_name</description>
    <pubDate>Mon, 11 Jan 2010 02:11:57 GMT</pubDate>
    <dc:creator>sasrac</dc:creator>
    <dc:date>2010-01-11T02:11:57Z</dc:date>
    <item>
      <title>how to get latest date using mdx</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-get-latest-date-using-mdx/m-p/38131#M4648</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I have a measure that calculates the difference between two dates. &lt;BR /&gt;
How will I get the latest date without inputting the date value so that it will automatically update the measure? I am using mdx in EG since my source is OLAP cube. &lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Fri, 08 Jan 2010 02:06:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-get-latest-date-using-mdx/m-p/38131#M4648</guid>
      <dc:creator>louise</dc:creator>
      <dc:date>2010-01-08T02:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to get latest date using mdx</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-get-latest-date-using-mdx/m-p/38132#M4649</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
MDX is almost like an SQL syntax.&lt;BR /&gt;
You could try to get the max of the date.&lt;BR /&gt;
&lt;BR /&gt;
sample: &lt;BR /&gt;
 &lt;BR /&gt;
select max(date)as date from source;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
or&lt;BR /&gt;
&lt;BR /&gt;
select distinct(max (date_column)) from table_name</description>
      <pubDate>Mon, 11 Jan 2010 02:11:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-get-latest-date-using-mdx/m-p/38132#M4649</guid>
      <dc:creator>sasrac</dc:creator>
      <dc:date>2010-01-11T02:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to get latest date using mdx</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-get-latest-date-using-mdx/m-p/38133#M4650</link>
      <description>you could also try this doc.&lt;BR /&gt;
&lt;BR /&gt;
sww.sas.com/base/olap/MDX%20Tutorial.doc</description>
      <pubDate>Mon, 11 Jan 2010 02:21:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-get-latest-date-using-mdx/m-p/38133#M4650</guid>
      <dc:creator>sasrac</dc:creator>
      <dc:date>2010-01-11T02:21:19Z</dc:date>
    </item>
  </channel>
</rss>

