dbTalk Databases Forums  

Question about the usage of "LookupCube"

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


Discuss Question about the usage of "LookupCube" in the microsoft.public.sqlserver.olap forum.



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

Default Question about the usage of "LookupCube" - 06-16-2006 , 11:26 PM






Hi! Everybody,

I have a question about using the "LookupCube".

I am using SQL Server 2000 to create my data cube. Now,I want to create a
calculated member in the virtual cube and the syntax is as follows:

LookupCube("Cube
Name","([Measures].[ABC],"+MemberToStr([Date].currentmember) +")")

I can view the result in development tool or write MDX query in MDX Sample
Application. However, when I view the result in Excel spreedsheet, the result
is "#Value". What happen to my Excel? Am I writing wrong MDX syntax?

Hope somebody can help me to solve this problem. Thanks!

Polly




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

Default Re: Question about the usage of "LookupCube" - 06-28-2006 , 07:10 AM






Hi Polly:

Instead of

MemberToStr([Date].currentmember)

try

[Date].CurrentMember.Name

Keep everything else the same.

- David Clem

Polly wrote:
Quote:
Hi! Everybody,

I have a question about using the "LookupCube".

I am using SQL Server 2000 to create my data cube. Now,I want to create a
calculated member in the virtual cube and the syntax is as follows:

LookupCube("Cube
Name","([Measures].[ABC],"+MemberToStr([Date].currentmember) +")")

I can view the result in development tool or write MDX query in MDX Sample
Application. However, when I view the result in Excel spreedsheet, the result
is "#Value". What happen to my Excel? Am I writing wrong MDX syntax?

Hope somebody can help me to solve this problem. Thanks!

Polly


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.