dbTalk Databases Forums  

Time Dimension in SAS 2005

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


Discuss Time Dimension in SAS 2005 in the microsoft.public.sqlserver.olap forum.



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

Default Time Dimension in SAS 2005 - 10-27-2006 , 10:03 AM






I am creating a simple SAS 2005 Cube. One of the things I want is a time
dimension with the hierarchy Year -> Quarter -> Month -> Date.

This time dimension shuold relate to a datetime field in my fact table.

In Analysis Services 2000, I would just drag my datetime field from my fact
table to the Dimensions Folder and it would ask me the levels I wanted and
then I was done.

I am sure this is something simple, but I cannot find anywhere how to do
this... I am still new at SAS2005, and this is the last thing keeping me
from publishing my 1st Cube.



Reply With Quote
  #2  
Old   
Ohjoo Kwon
 
Posts: n/a

Default Re: Time Dimension in SAS 2005 - 10-27-2006 , 11:26 AM






First, there is no customized member key/name column as in AS 2000. So every
customized member key/name column is reflected in data source view, which is
in turn used for attribute hierarchies such as Year, Quarter, Month, and so
on.

Next, you can make user hierarchy using attribute hierarchies. Below is
about "How to: Add or Delete a User-Defined Hierarchy "

http://msdn2.microsoft.com/en-us/library/ms175442.aspx


Ohjoo


"oe" <nosapm (AT) nosamp (DOT) com> wrote

Quote:
I am creating a simple SAS 2005 Cube. One of the things I want is a time
dimension with the hierarchy Year -> Quarter -> Month -> Date.

This time dimension shuold relate to a datetime field in my fact table.

In Analysis Services 2000, I would just drag my datetime field from my
fact table to the Dimensions Folder and it would ask me the levels I
wanted and then I was done.

I am sure this is something simple, but I cannot find anywhere how to do
this... I am still new at SAS2005, and this is the last thing keeping me
from publishing my 1st Cube.





Reply With Quote
  #3  
Old   
oe
 
Posts: n/a

Default Re: Time Dimension in SAS 2005 - 10-27-2006 , 04:27 PM



I guess I am not getting that...

I don't need a customized member key/name is AS 2000. It creates the
dimension with the levels I choose (Year, Quarter, Month, Date) just from me
dragggin the column from the fact table into the Dimension Folder in the
AS2000 Cube Editor.

So in SAS2005, I create a new dimension and point it at the datetime field
in my fact table. I looked at user definied heirarchy you mention, but that
does not let me add anything. If I process the cube and browse it, I get
each individual date as a dimension, but no ability to roll that up to
month, quarter, and year.



"Ohjoo Kwon" <ojkwon (AT) olap (DOT) co.kr> wrote

Quote:
First, there is no customized member key/name column as in AS 2000. So
every customized member key/name column is reflected in data source view,
which is in turn used for attribute hierarchies such as Year, Quarter,
Month, and so on.

Next, you can make user hierarchy using attribute hierarchies. Below is
about "How to: Add or Delete a User-Defined Hierarchy "

http://msdn2.microsoft.com/en-us/library/ms175442.aspx


Ohjoo


"oe" <nosapm (AT) nosamp (DOT) com> wrote in message
news:ezowSkd%23GHA.3348 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
I am creating a simple SAS 2005 Cube. One of the things I want is a time
dimension with the hierarchy Year -> Quarter -> Month -> Date.

This time dimension shuold relate to a datetime field in my fact table.

In Analysis Services 2000, I would just drag my datetime field from my
fact table to the Dimensions Folder and it would ask me the levels I
wanted and then I was done.

I am sure this is something simple, but I cannot find anywhere how to do
this... I am still new at SAS2005, and this is the last thing keeping me
from publishing my 1st Cube.







Reply With Quote
  #4  
Old   
Ohjoo Kwon
 
Posts: n/a

Default Re: Time Dimension in SAS 2005 - 10-29-2006 , 08:49 AM



In AS 2000, the built-in wizard actually addes each level with customized
SQL expression at each member key/name column according to each level.

Unfortunately there is not the same built-in wizard in AS 2005. I guess it's
because we cannot use SQL expression directly at KeyColumns/NameColumn of
each attribute hierarchy. Instead we should define the expressions, for
example Named Calculation, in data source view first and just refer to it.

And... each attribute hierarchy should be defined before it is used for user
hierarchy.

Ohjoo


"oe" <nosapm (AT) nosamp (DOT) com> wrote

Quote:
I guess I am not getting that...

I don't need a customized member key/name is AS 2000. It creates the
dimension with the levels I choose (Year, Quarter, Month, Date) just from
me dragggin the column from the fact table into the Dimension Folder in
the AS2000 Cube Editor.

So in SAS2005, I create a new dimension and point it at the datetime field
in my fact table. I looked at user definied heirarchy you mention, but
that does not let me add anything. If I process the cube and browse it, I
get each individual date as a dimension, but no ability to roll that up to
month, quarter, and year.



"Ohjoo Kwon" <ojkwon (AT) olap (DOT) co.kr> wrote in message
news:uTw%230Se%23GHA.4468 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
First, there is no customized member key/name column as in AS 2000. So
every customized member key/name column is reflected in data source view,
which is in turn used for attribute hierarchies such as Year, Quarter,
Month, and so on.

Next, you can make user hierarchy using attribute hierarchies. Below is
about "How to: Add or Delete a User-Defined Hierarchy "

http://msdn2.microsoft.com/en-us/library/ms175442.aspx


Ohjoo


"oe" <nosapm (AT) nosamp (DOT) com> wrote in message
news:ezowSkd%23GHA.3348 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
I am creating a simple SAS 2005 Cube. One of the things I want is a time
dimension with the hierarchy Year -> Quarter -> Month -> Date.

This time dimension shuold relate to a datetime field in my fact table.

In Analysis Services 2000, I would just drag my datetime field from my
fact table to the Dimensions Folder and it would ask me the levels I
wanted and then I was done.

I am sure this is something simple, but I cannot find anywhere how to do
this... I am still new at SAS2005, and this is the last thing keeping me
from publishing my 1st Cube.









Reply With Quote
  #5  
Old   
Julius Concepcion
 
Posts: n/a

Default Re: Time Dimension in SAS 2005 - 10-30-2006 , 06:48 PM



AS 2000 was hierarchical-based. AS2005 is attribute-based, so you'll
have to create your own hierarchies (user-defined hierarchies) as a
collection of related attributes. It's quite simple to make the [Year,
Quarter, Month, Date] hierarchy that you mentioned, but this time
there's no wizard to do it for you. You will have to design what
hierarchies you want and then build it.

oe wrote:
Quote:
I guess I am not getting that...

I don't need a customized member key/name is AS 2000. It creates the
dimension with the levels I choose (Year, Quarter, Month, Date) just from me
dragggin the column from the fact table into the Dimension Folder in the
AS2000 Cube Editor.

So in SAS2005, I create a new dimension and point it at the datetime field
in my fact table. I looked at user definied heirarchy you mention, but that
does not let me add anything. If I process the cube and browse it, I get
each individual date as a dimension, but no ability to roll that up to
month, quarter, and year.



"Ohjoo Kwon" <ojkwon (AT) olap (DOT) co.kr> wrote in message
news:uTw%230Se%23GHA.4468 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
First, there is no customized member key/name column as in AS 2000. So
every customized member key/name column is reflected in data source view,
which is in turn used for attribute hierarchies such as Year, Quarter,
Month, and so on.

Next, you can make user hierarchy using attribute hierarchies. Below is
about "How to: Add or Delete a User-Defined Hierarchy "

http://msdn2.microsoft.com/en-us/library/ms175442.aspx


Ohjoo


"oe" <nosapm (AT) nosamp (DOT) com> wrote in message
news:ezowSkd%23GHA.3348 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
I am creating a simple SAS 2005 Cube. One of the things I want is a time
dimension with the hierarchy Year -> Quarter -> Month -> Date.

This time dimension shuold relate to a datetime field in my fact table.

In Analysis Services 2000, I would just drag my datetime field from my
fact table to the Dimensions Folder and it would ask me the levels I
wanted and then I was done.

I am sure this is something simple, but I cannot find anywhere how to do
this... I am still new at SAS2005, and this is the last thing keeping me
from publishing my 1st Cube.






Reply With Quote
  #6  
Old   
Akshai Mirchandani [MS]
 
Posts: n/a

Default Re: Time Dimension in SAS 2005 - 11-07-2006 , 03:01 PM



The right answer here though is to avoid using the fact table DateTime for
the Time dimension. A best practice is to use a fully-defined Date dimension
table which contains *all* dates in the range you care about and not just
the ones for which you have fact rows.

In fact, you can also use the Time dimension wizard to create such a
dimension table -- or use a server-generated Time dimension.

Thanks,
Akshai
--
Try out the MSDN Forums for Analysis Services at:
http://forums.microsoft.com/MSDN/Sho...ID=83&SiteID=1

This posting is provided "AS IS" with no warranties, and confers no rights
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.

"Ohjoo Kwon" <ojkwon (AT) olap (DOT) co.kr> wrote

Quote:
In AS 2000, the built-in wizard actually addes each level with customized
SQL expression at each member key/name column according to each level.

Unfortunately there is not the same built-in wizard in AS 2005. I guess
it's because we cannot use SQL expression directly at
KeyColumns/NameColumn of each attribute hierarchy. Instead we should
define the expressions, for example Named Calculation, in data source view
first and just refer to it.

And... each attribute hierarchy should be defined before it is used for
user hierarchy.

Ohjoo


"oe" <nosapm (AT) nosamp (DOT) com> wrote in message
news:efIya6g%23GHA.1784 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
I guess I am not getting that...

I don't need a customized member key/name is AS 2000. It creates the
dimension with the levels I choose (Year, Quarter, Month, Date) just from
me dragggin the column from the fact table into the Dimension Folder in
the AS2000 Cube Editor.

So in SAS2005, I create a new dimension and point it at the datetime
field in my fact table. I looked at user definied heirarchy you mention,
but that does not let me add anything. If I process the cube and browse
it, I get each individual date as a dimension, but no ability to roll
that up to month, quarter, and year.



"Ohjoo Kwon" <ojkwon (AT) olap (DOT) co.kr> wrote in message
news:uTw%230Se%23GHA.4468 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
First, there is no customized member key/name column as in AS 2000. So
every customized member key/name column is reflected in data source
view, which is in turn used for attribute hierarchies such as Year,
Quarter, Month, and so on.

Next, you can make user hierarchy using attribute hierarchies. Below is
about "How to: Add or Delete a User-Defined Hierarchy "

http://msdn2.microsoft.com/en-us/library/ms175442.aspx


Ohjoo


"oe" <nosapm (AT) nosamp (DOT) com> wrote in message
news:ezowSkd%23GHA.3348 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
I am creating a simple SAS 2005 Cube. One of the things I want is a
time dimension with the hierarchy Year -> Quarter -> Month -> Date.

This time dimension shuold relate to a datetime field in my fact table.

In Analysis Services 2000, I would just drag my datetime field from my
fact table to the Dimensions Folder and it would ask me the levels I
wanted and then I was done.

I am sure this is something simple, but I cannot find anywhere how to
do this... I am still new at SAS2005, and this is the last thing
keeping me from publishing my 1st Cube.









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.