- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 01-07-2010 09:06 PM
(2491 views)
Hi,
I have a measure that calculates the difference between two dates.
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.
Thanks!
I have a measure that calculates the difference between two dates.
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.
Thanks!
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
MDX is almost like an SQL syntax.
You could try to get the max of the date.
sample:
select max(date)as date from source;
quit;
or
select distinct(max (date_column)) from table_name
MDX is almost like an SQL syntax.
You could try to get the max of the date.
sample:
select max(date)as date from source;
quit;
or
select distinct(max (date_column)) from table_name
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
you could also try this doc.
sww.sas.com/base/olap/MDX%20Tutorial.doc
sww.sas.com/base/olap/MDX%20Tutorial.doc