dbTalk Databases Forums  

Re: Sum function of Childeren...

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


Discuss Re: Sum function of Childeren... in the microsoft.public.sqlserver.olap forum.



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

Default Re: Sum function of Childeren... - 08-21-2003 , 06:13 PM






Assuming that [ProductID] is the leaf level of [Products]:

MDX for Total_Sales Calculated Measure>>
Sum(Descendants(Products.CurrentMember,Products.Pr oductID),
[Measure].[Price_Item]*[Measure].[Qty])
Quote:
- Deepak

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


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.