dbTalk Databases Forums  

Time Dimension for Today, Yesterday, MTD

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Time Dimension for Today, Yesterday, MTD in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gary Murrish
 
Posts: n/a

Default Time Dimension for Today, Yesterday, MTD - 03-01-2004 , 07:28 AM






I have a shared time dimension of Year--> Quarter --> Month --> Date and
would like to have another shared time dimension containing "Relative" times
such as Today, Yesterday, YTD, Last Year YTD, ... I used calculated measures
in the cube using the MDX functions and they work, but it doesn't allow the
user to work with it like a dimension. For example being able to select the
"Relative" timeframe from a drop down, ...

Also, these calculated measures are not shared across all cubes in the
database.

Thank you very much.



Reply With Quote
  #2  
Old   
Alex
 
Posts: n/a

Default RE: Time Dimension for Today, Yesterday, MTD - 03-01-2004 , 08:31 AM






H

you can create new data dimensio
example for previous yea
DatePart(year,"dbo"."Data"."Data"-365
or for mont
DatePart(month,"dbo"."Data"."Data"-365)

Reply With Quote
  #3  
Old   
Gary Murrish
 
Posts: n/a

Default Re: Time Dimension for Today, Yesterday, MTD - 03-01-2004 , 08:55 AM



Thanks for responding, but what I am looking for is the ability to create a
dimension or something that acts like a dimension with Excel that would have
non-hierarchial members of Today, Yesterday, ... that could be used to
restrict the data similar to selecting a specific quarter in the normal Time
Dimension.

-- Gary

"Alex" <alex_priv (AT) interia (DOT) pl> wrote

Quote:
Hi

you can create new data dimension
example for previous year
DatePart(year,"dbo"."Data"."Data"-365)
or for month
DatePart(month,"dbo"."Data"."Data"-365)



Reply With Quote
  #4  
Old   
Gary Murrish
 
Posts: n/a

Default Re: Time Dimension for Today, Yesterday, MTD - 03-02-2004 , 12:35 AM



Thank you very much. Here is another article that I found useful:
http://www.tomchester.net/articlesdo...dimension.html


"Brian Altmann" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
You could use custom member formulas.("Creating Custom Member Formulas" in
BOL)
HTH,
Brian
www.geocities.com/brianaltmann/olap.html



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.