dbTalk Databases Forums  

don't care dimension?? [1].[(don't care)].[1]

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


Discuss don't care dimension?? [1].[(don't care)].[1] in the microsoft.public.sqlserver.olap forum.



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

Default don't care dimension?? [1].[(don't care)].[1] - 09-21-2004 , 06:56 PM






Is it possible to select all weeks in this time dimensions, so i don't have
to calculate weeks if I don't need to?
like this format?
[Time].[2003].[month].[week].[day]

like
[Time].[2003].[1].[*].[1]
[Time].[2003].[1].[All week].[1]



Reply With Quote
  #2  
Old   
Brian Altmann
 
Posts: n/a

Default RE: don't care dimension?? [1].[(don't care)].[1] - 09-22-2004 , 09:27 AM






Is this what you mean (supposing Foodmart Years are your Months, and Foodmart
Quarters are your Weeks) ?

select
{[Measures].[Unit Sales]} on columns,
generate([1997].children,{time.currentmember.firstchild}) on rows
from Sales

HTH,
Brian
www.geocties.com/brianaltmann/olap.html

"Cindy Lee" wrote:

Quote:
Is it possible to select all weeks in this time dimensions, so i don't have
to calculate weeks if I don't need to?
like this format?
[Time].[2003].[month].[week].[day]

like
[Time].[2003].[1].[*].[1]
[Time].[2003].[1].[All week].[1]




Reply With Quote
  #3  
Old   
Cindy Lee
 
Posts: n/a

Default Re: don't care dimension?? [1].[(don't care)].[1] - 09-22-2004 , 12:43 PM



No, I have Year, month and day. But I don't have week number (I can
calculate it but don't want to)

Say 1/10/1997

[1997].[1].[week???].[10]

I can't use the date unless I put a week number.

Calculating the week number is easy, but there are other instances where I
need to use something like this.

"Brian Altmann" <findme@thesignaturewebsite> wrote

Quote:
Is this what you mean (supposing Foodmart Years are your Months, and
Foodmart
Quarters are your Weeks) ?

select
{[Measures].[Unit Sales]} on columns,
generate([1997].children,{time.currentmember.firstchild}) on rows
from Sales

HTH,
Brian
www.geocties.com/brianaltmann/olap.html

"Cindy Lee" wrote:

Is it possible to select all weeks in this time dimensions, so i don't
have
to calculate weeks if I don't need to?
like this format?
[Time].[2003].[month].[week].[day]

like
[Time].[2003].[1].[*].[1]
[Time].[2003].[1].[All week].[1]






Reply With Quote
  #4  
Old   
Brian Altmann
 
Posts: n/a

Default Re: don't care dimension?? [1].[(don't care)].[1] - 09-23-2004 , 07:57 AM



Maybe there is a more efficient way, but this shoud work (same assumptions as
before):

select
{[Measures].[Unit Sales]} on columns,
filter( descendants( [1997] ,[month]) , time.currentmember is [1] ) on
rows
from Sales

HTH,
Brian

"Cindy Lee" wrote:

Quote:
No, I have Year, month and day. But I don't have week number (I can
calculate it but don't want to)

Say 1/10/1997

[1997].[1].[week???].[10]

I can't use the date unless I put a week number.

Calculating the week number is easy, but there are other instances where I
need to use something like this.

"Brian Altmann" <findme@thesignaturewebsite> wrote in message
news:F4530932-3883-4128-A2AF-233D29BF1B06 (AT) microsoft (DOT) com...
Is this what you mean (supposing Foodmart Years are your Months, and
Foodmart
Quarters are your Weeks) ?

select
{[Measures].[Unit Sales]} on columns,
generate([1997].children,{time.currentmember.firstchild}) on rows
from Sales

HTH,
Brian
www.geocties.com/brianaltmann/olap.html

"Cindy Lee" wrote:

Is it possible to select all weeks in this time dimensions, so i don't
have
to calculate weeks if I don't need to?
like this format?
[Time].[2003].[month].[week].[day]

like
[Time].[2003].[1].[*].[1]
[Time].[2003].[1].[All week].[1]







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.