dbTalk Databases Forums  

Claculated Member Error???

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


Discuss Claculated Member Error??? in the microsoft.public.sqlserver.olap forum.



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

Default Claculated Member Error??? - 01-26-2004 , 12:35 PM






Hi,
Can anyone help me please with the following:

I am trying to create a Calculated member 'Actual Cost'
for my cube.
My cube has 3 dimensions and 4 measures.
Time dimension has 4 levels. The first level 'Year' has
following values
1997
1998
1999
2000

I am using following formula.

iif(([measures].[Labor Cost] > 70)
and ([Product].[PART-USED] <> null),
-- then
sum([time].allmembers, [Labor Cost])/
sum([time].allmembers, [Part Cost]), null)

In my cube I get error for the values of calculated
member 'Actual Cost'. The error is

'unable to display cell properties
Infinite recursion detected during execution of
calculated member actual cost
An error occured during attempt to get a cell value.'


I also tried using following but get the same error

SUM([Time].[1997]: [Time].CurrentMember


Thanks

Steve

Reply With Quote
  #2  
Old   
Brian Altmann
 
Posts: n/a

Default RE: Claculated Member Error??? - 01-26-2004 , 03:31 PM






You might try replacing Product.[Part Used] by a tuple such as:

(Product.[Part Used],Measures.[Some Measure])

Your current formula tells AS to look for (Product.[Part Used],measures.currentmember).
Currentmemember is [Actual Cost] and this causes the infinite recursion.
HTH,
Brian
www.geocities.com/brianaltmann/olap.html


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.