dbTalk Databases Forums  

Calculated member from values in dimension

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


Discuss Calculated member from values in dimension in the microsoft.public.sqlserver.olap forum.



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

Default Calculated member from values in dimension - 08-29-2006 , 02:38 AM






Hi, I am struggling to find a way how to make a new calculated member.
I have fx this table :

ID___Location_____Cost___Done(Y/N)____
1 100 50 Y
2 110 120 Y
3 100 133 N
4 110 122 N

I need to know sum Done and a calculated value PR with this value :
Y/(N+Y).

How can I create a calculated value from this? I've tried a few
variations where I try to read the members in Done-field but I get
errors of loops.

SSAS2000...

Best regards,
Øyvind


Reply With Quote
  #2  
Old   
yongli
 
Posts: n/a

Default RE: Calculated member from values in dimension - 08-29-2006 , 04:10 PM






What's your cube/dimension structure? If you have a measure called cost
and dimension done, then the calcualted member will be:

([Measures].[Cost], [Done].[Y])/([Measures].[Cost], [Done].[All])

"Dalen" wrote:

Quote:
Hi, I am struggling to find a way how to make a new calculated member.
I have fx this table :

ID___Location_____Cost___Done(Y/N)____
1 100 50 Y
2 110 120 Y
3 100 133 N
4 110 122 N

I need to know sum Done and a calculated value PR with this value :
Y/(N+Y).

How can I create a calculated value from this? I've tried a few
variations where I try to read the members in Done-field but I get
errors of loops.

SSAS2000...

Best regards,
Øyvind



Reply With Quote
  #3  
Old   
Dalen
 
Posts: n/a

Default Re: Calculated member from values in dimension - 08-30-2006 , 03:20 AM



yongli wrote:
Quote:
What's your cube/dimension structure? If you have a measure called cost
and dimension done, then the calcualted member will be:

([Measures].[Cost], [Done].[Y])/([Measures].[Cost], [Done].[All])
Great, thanks yongli, that worked perfectly.

Best regards



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.