dbTalk Databases Forums  

Need help with calculate member

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


Discuss Need help with calculate member in the microsoft.public.sqlserver.olap forum.



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

Default Need help with calculate member - 11-02-2003 , 09:56 PM






Hi All,

When I create a measurement from a member property, I have to
write exactly that which hierarchy I want to get the member property
from. I have four hierarchy in this dimension. A hierarchy is created
in order to filter the data.

For example, I get the member property from customer dimension
Hierarchy A because I want Hierarchy A to be rows in my report. Then I
use customer dimension Hierarchy B to filter the data. As a result,
the report show the data without concerning anything about hierarchy
B. If I want my report to be filtered, what kind of MDX do I have to
do?


This is my current MDX statement

iif(isleaf([Customer].[SalesOrg].currentmember),
iif((val([Customer].[SalesOrg].currentmember.properties("Credit
Limit"))) <> 0 and ([Measures].[Open Balance] <> Null),
val([Customer].[SalesOrg].currentmember.properties("Credit
Limit")),Null),

Sum(Descendants([Customer].[SalesOrg].currentmember,[Customer].[SalesOrg].[Customer],Leave),[Measures].[Credit
Limit]))

Best Regards,

Anote

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.