dbTalk Databases Forums  

Multiple Hierarchy

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


Discuss Multiple Hierarchy in the microsoft.public.sqlserver.olap forum.



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

Default Multiple Hierarchy - 12-12-2005 , 02:22 AM






I have Time dimension with multiple hierarchies ( Calendar & Financial). I
want to create a calculated members which will give YTD sales. Now I want to
write MDX in such a way that it will work with both Time hierarchies. Is it
possible to do in AS2000 or I will have to write two calculated members one
for each hierarchy.

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

Default Re: Multiple Hierarchy - 12-12-2005 , 03:03 AM






You could use iif statement to check which time dimension is being used.
That would mean that you have 3 combinations:

a) calendar is not on the (all) level and financial is --- use ytd(calendar)
b) calendat is on the (all) level and financial is not -- use ytd(financial)
c) both time dimensions are on the (all) level --- your choice what to do


MC

"Zubin" <Zubin (AT) discussions (DOT) microsoft.com> wrote

Quote:
I have Time dimension with multiple hierarchies ( Calendar & Financial). I
want to create a calculated members which will give YTD sales. Now I want
to
write MDX in such a way that it will work with both Time hierarchies. Is
it
possible to do in AS2000 or I will have to write two calculated members
one
for each hierarchy



Reply With Quote
  #3  
Old   
Darren Gosbell
 
Posts: n/a

Default Re: Multiple Hierarchy - 12-12-2005 , 06:33 AM



Chris Webb has an article on that may be of interest to you here:
http://spaces.msn.com/members/cwebbbi/Blog/cns!1pi7ETChsJ1un_2s41jm9Iyg!
379.entry

--
Regards
Darren Gosbell [MCSD]
Blog: http://www.geekswithblogs.net/darrengosbell

In article <#obwrlv$FHA.2040 (AT) TK2MSFTNGP14 (DOT) phx.gbl>, marko_culo#@#yahoo#.
#com# says...
Quote:
You could use iif statement to check which time dimension is being used.
That would mean that you have 3 combinations:

a) calendar is not on the (all) level and financial is --- use ytd(calendar)
b) calendat is on the (all) level and financial is not -- use ytd(financial)
c) both time dimensions are on the (all) level --- your choice what to do


MC

"Zubin" <Zubin (AT) discussions (DOT) microsoft.com> wrote in message
news:F6595D99-6C1D-48BE-810C-6A3358801EA9 (AT) microsoft (DOT) com...
I have Time dimension with multiple hierarchies ( Calendar & Financial). I
want to create a calculated members which will give YTD sales. Now I want
to
write MDX in such a way that it will work with both Time hierarchies. Is
it
possible to do in AS2000 or I will have to write two calculated members
one
for each hierarchy




Reply With Quote
  #4  
Old   
MC
 
Posts: n/a

Default Re: Multiple Hierarchy - 12-12-2005 , 07:06 AM



I didnt read it all the way through, but as far as I can see, this relates
to the AS 2005 and the original question was regarding AS 2000. Am I wrong?

MC

PS. thanks for the link, seems like a very usefull blog

"Darren Gosbell" <jam (AT) newsgroups (DOT) nospam> wrote

Quote:
Chris Webb has an article on that may be of interest to you here:
http://spaces.msn.com/members/cwebbbi/Blog/cns!1pi7ETChsJ1un_2s41jm9Iyg!
379.entry

--
Regards
Darren Gosbell [MCSD]
Blog: http://www.geekswithblogs.net/darrengosbell

In article <#obwrlv$FHA.2040 (AT) TK2MSFTNGP14 (DOT) phx.gbl>, marko_culo#@#yahoo#.
#com# says...
You could use iif statement to check which time dimension is being used.
That would mean that you have 3 combinations:

a) calendar is not on the (all) level and financial is --- use
ytd(calendar)
b) calendat is on the (all) level and financial is not -- use
ytd(financial)
c) both time dimensions are on the (all) level --- your choice what to do


MC

"Zubin" <Zubin (AT) discussions (DOT) microsoft.com> wrote in message
news:F6595D99-6C1D-48BE-810C-6A3358801EA9 (AT) microsoft (DOT) com...
I have Time dimension with multiple hierarchies ( Calendar & Financial).
I
want to create a calculated members which will give YTD sales. Now I
want
to
write MDX in such a way that it will work with both Time hierarchies.
Is
it
possible to do in AS2000 or I will have to write two calculated members
one
for each hierarchy






Reply With Quote
  #5  
Old   
Darren Gosbell
 
Posts: n/a

Default Re: Multiple Hierarchy - 12-13-2005 , 03:04 AM



In article <#$d$Ztx$FHA.3048 (AT) TK2MSFTNGP15 (DOT) phx.gbl>, marko_culo#@#yahoo#.
#com# says...
Quote:
I didnt read it all the way through, but as far as I can see, this relates
to the AS 2005 and the original question was regarding AS 2000. Am I wrong?

Sorry, my mistake. I missed the reference to AS 2000, so your original
suggestion probably still stands.

Quote:
PS. thanks for the link, seems like a very usefull blog
It sure is. At least something good came out of my mistake

--
Regards
Darren Gosbell [MCSD]
Blog: http://www.geekswithblogs.net/darrengosbell


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.