dbTalk Databases Forums  

Problem with Calculated Cells after migration

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


Discuss Problem with Calculated Cells after migration in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
frederick (Offline)
Junior Member
 
Posts: 4
Join Date: Jul 2006

Default Problem with Calculated Cells after migration - 07-19-2006 , 09:36 AM






Hi,

I have migrated a cube from 2000 to SSAS 2005. The cube contains many calculated members and cells.

Unfortunately the calculated cells do not work in SSAS 2005. Here is a code example:

CREATE CELL CALCULATION
CURRENTCUBE.[P1965 YTD]
FOR '({[Measures].[Act YTD]},{[P1].[Report L6].&[00490965]})'

AS ( [P1].[P1965-1] , [Measures].[Act YTD] )
+
( [P1].[P1965-2] , [Measures].[Act LY WY] ),

SOLVE_ORDER = 20,
CONDITION = '[measures].currentmember.name = "Act YTD"';

What's wrong with the MDX code?

I have examined the problem and when I remove the MDX Expression {[Measures].[Act YTD]} from "FOR" and remove the CONDITION statement, then it works... however, the cell calculation should only be calculated on the measure: Act YTD. By the way: "Act YTD" is a calculated member.

Does anyone have experience with Calculated Cells in SSAS 2005? I haven't been able to find much info about this.

Instead of using Calculated Cells I guess could use SCOPE and the following is working:

SCOPE({[Measures].[Act YTD]}, {[P1].[P1].[Report Row Code L5].&[00490965]});
this = (
[P1].[P1965-1]
,
[Measures].[Act YTD]
)
+
(
[P1].[P1965-2]
,
[Measures].[Act LY WY]
);
END SCOPE;

However I also need to set the solve_order. Is that possible when using the SCOPE statement?

Thank you in advance for any help.

Best Regards,
Frederick

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.