dbTalk Databases Forums  

aggregation in a hierarchy

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


Discuss aggregation in a hierarchy in the microsoft.public.sqlserver.olap forum.



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

Default aggregation in a hierarchy - 01-22-2006 , 10:55 PM






Let's say I have a hierarchy as follows:

ALLMember
Quote:

-X
- Leafmember1
- Leafmember2
Quote:

-Y
- Leafmember3
- Leafmember4
- Leafmember5

To sum to the [ALL Member]-level, we can use the following MDX formula:
[X] + [Y].

No problem here...



But, how will I sum X and Y if I want to say the following (in other words
both X and Y sums to certain weights of their leaf members):
X = Leafmember1 + (0.67*Leafmember2)

and say

Y= Leafmember3 + (0.5*Leafmember4) + (0.2*Leafmember5)

THUS:
=====
1. How can I have different (weighted) rollup formulas for X and Y?
2. Where can I do it in the MS-OLAP dimension editor (for a certain dimension)
?


Any help in this regard will be greatly appreciated.


Reply With Quote
  #2  
Old   
Vladimir Chtepa
 
Posts: n/a

Default Re: aggregation in a hierarchy - 01-24-2006 , 08:48 AM






Hi

Where do the weight factors come from?
The more quick running solution would be to place the factors direct into
fact table und create masure.
The second choice is to create a dimension attribute, thereafter create
calculated measure. This solution will be definitive slower as the first.


Vladimir Chtepa

"graemevn" <u17960@uwe> schrieb im Newsbeitrag news:5ac537dc254e1 (AT) uwe (DOT) ..
Quote:
Let's say I have a hierarchy as follows:

ALLMember
|
|
-X
- Leafmember1
- Leafmember2
|
|
-Y
- Leafmember3
- Leafmember4
- Leafmember5

To sum to the [ALL Member]-level, we can use the following MDX formula:
[X] + [Y].

No problem here...



But, how will I sum X and Y if I want to say the following (in other words
both X and Y sums to certain weights of their leaf members):
X = Leafmember1 + (0.67*Leafmember2)

and say

Y= Leafmember3 + (0.5*Leafmember4) + (0.2*Leafmember5)

THUS:
=====
1. How can I have different (weighted) rollup formulas for X and Y?
2. Where can I do it in the MS-OLAP dimension editor (for a certain
dimension)
?


Any help in this regard will be greatly appreciated.



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.