dbTalk Databases Forums  

#Err results from query.

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


Discuss #Err results from query. in the microsoft.public.sqlserver.olap forum.



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

Default #Err results from query. - 03-23-2005 , 11:32 AM






Hi,

Would you know why the following MDX returns '#Err' as values?

WITH
SET [Set1] AS '[Customers].[Country].Members'
MEMBER [Measures].[T] as '[Set1].Current.Item(0).UniqueName'

SELECT {[measures].[t]} ON COLUMNS,
[Set1] on Rows

FROM [Sales]

Thanks.



Reply With Quote
  #2  
Old   
Ohjoo Kwon
 
Posts: n/a

Default Re: #Err results from query. - 03-23-2005 , 12:30 PM






Current function returns the current tuple from a set *during an iteration*.

Here, you should modify the calcualted member as following,

MEMBER [Measures].[T] AS 'Customers.CurrentMember.UniqueName'

Ohjoo Kwon


"John" <nospam> wrote

Quote:
Hi,

Would you know why the following MDX returns '#Err' as values?

WITH
SET [Set1] AS '[Customers].[Country].Members'
MEMBER [Measures].[T] as '[Set1].Current.Item(0).UniqueName'

SELECT {[measures].[t]} ON COLUMNS,
[Set1] on Rows

FROM [Sales]

Thanks.





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.