dbTalk Databases Forums  

Calculated Member - MDX

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


Discuss Calculated Member - MDX in the microsoft.public.sqlserver.olap forum.



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

Default Calculated Member - MDX - 08-18-2004 , 10:01 AM






I have a cube with multiple cacluated members that allows
the user to view the measure (dollar amount) by different
categories. Usually the members are straightforward -
simply based on a specific value in a field i.e. FieldA =
123.

My scenario is if FieldA is valued with '-' which is our
default for spaces, I want to extend my search to other
dimensions. My current MDX is:

[Detail_Pos_1_and_4_IBC].[Detail Code Position 1].&[A]+

SUM({[Detail_Pos_1_and_4].[Detail Code Position 1].&[-]},
([Cred_Code_ABC].[Cred Code].&[P],[Control_Code_ABC].
[Control Code].&[C62]))

This pulls in all recs with detail code A plus all recs
with detail code '-' where cred code is P and control code
is C62. This works great and I balance exactly. My
problem is I need to build another calculated member
exactly as above except I want all control codes BUT C62.
I've tried to play with the EXCEPT command but am getting
all kinds of syntax errors.

Any suggestions?

Thanks,
Jim



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.