dbTalk Databases Forums  

Sum children with sprecial formula and a dimension member property

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


Discuss Sum children with sprecial formula and a dimension member property in the microsoft.public.sqlserver.olap forum.



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

Default Sum children with sprecial formula and a dimension member property - 02-18-2004 , 03:10 AM






Hi,

I've got the a parent-child "Portfolio tree" Dimension with a member
property "RATIO" and a facts table with the measure "DTD".

Part of the protfolio tree looks like:

BONDS (???)
Quote:
----------- Zero Koupon (DTD=1000, RATIO=0.5)
----------- 2% Koupon (DTD=1000, RATIO=1)
----------- ......

The BONDS level has n-children. What I want to to is to calculate the
sum of weighted (with RATIO) DTD children on the BONDS-level.

Calculated member on the BONDS level in general:

"DTD_BONDS" = (DTD of children 1 * RATIO of children 1) +
(DTD of children 2 * RATIO of children 2) + ... + (DTD of children n *
RATIO of children n)


Hope somebody has an idea to implement this tricky formula.

Thanks a lot!!!

regards

Bruce


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

Default RE: Sum children with sprecial formula and a dimension member property - 02-18-2004 , 07:41 AM






Something along the lines of

sum([portfolio tree].currentmember.children,DTD * [portfolio tree].currentmember.properties("ratio")

HTH
Bria
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.