dbTalk Databases Forums  

Percentage value

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


Discuss Percentage value in the microsoft.public.sqlserver.olap forum.



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

Default Percentage value - 04-06-2004 , 08:19 AM






Hi,

I´m a newbie in MDX.
I want to create a calculated member which shows the percetage allocation of
a measure. I have the following code:

CREATE MEMBER [myCube].[Measures].ZM1 AS
'(RD1.CurrentMember, [Measures].ZM1perc) / (RD1.CurrentMember.parent,
[Measures].ZM1perc)'

When I only have one dimension everthing is OK. But when I have more than
one dimension, starting at the second dimension the value of
"(RD1.CurrentMember.parent, [Measures].ZM1perc)" is wrong.
I want to have 2 different behavior:
1.
Dim1 Value
M1 30%
M2 60%
M3 10%
--------------------------- expand M1
Dim1 Dim2
M1 B1 10%
B2 15%
B3 5%
M2 B4 30%
... ... ...

2.
Dim1 Value
M1 30%
M2 60%
M3 10%
--------------------------- expand M1
Dim1 Dim2
M1 B1 23%
B2 60%
B3 12%
M2 B4 30%
... ... ...

Any ideas how I can do this?

Regards,
Thorsten Blawatt



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.