dbTalk Databases Forums  

Calculated Member in AS2000 and AS2005

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


Discuss Calculated Member in AS2000 and AS2005 in the microsoft.public.sqlserver.olap forum.



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

Default Calculated Member in AS2000 and AS2005 - 10-02-2006 , 11:18 AM






Hi all, I'm working with AS2000 and AS2005, with similar Fact Tables, I
have a calculated cell like this:

([Measures].[Sales],
Tail(NonEmptyCrossJoin([Sales Date].[Day].Members)).Item(0).Item(0))

This Calculated Cell works perfect with AS2000, but in AS2005 when I
look the Data with Excel it's giving me an error, #VALUE!
AS2005 is the Standar Edition.

Any Idea?
Thanks


Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: Calculated Member in AS2000 and AS2005 - 10-03-2006 , 05:13 PM






Are there multiple measure groups in the AS 2005 cube? If so, you could
explicitly select a measure in NonEmpty(). Also, if there are multiple
hierarchies in the [Sales Date] dimension, you might include the
hierarchy, like:

([Measures].[Sales],
Tail(NonEmpty([Sales Date].[Day].[Day].Members,
{[Measures].[Sales]})).Item(0).Item(0))


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***

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.