dbTalk Databases Forums  

Simple CurrentMember and Calculated Members question

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


Discuss Simple CurrentMember and Calculated Members question in the microsoft.public.sqlserver.olap forum.



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

Default Simple CurrentMember and Calculated Members question - 03-09-2005 , 11:18 AM






Hi everybody,

Iīm starting to believe that I am misunderstanding some MDX concepts
so maybe somebody out there could give me a hand with this relatively
easy example:

To make things easier, letīs say that I have a cube with one [Time]
dimension plus one measure called Measure1. Also a calculated member in
the Measures dimension called CalculatedMember1.

When I run the following MDX query:

WITH
MEMBER [Time].[X] AS 'TupleToStr(([Measures].CurrentMember))'

SELECT {[Time].[X]} ON COLUMNS,
{[Measures].[Measure1], [Measures].[CalculatedMember1]} ON ROWS
FROM [MyCube]

I obtain the complete path for the name of Measure1, thatīs fine, it
is a real measure in my cube. However I get #ERR for the
CalculatedMember1.

By the error messages Iīm getting it gives me the impression that it
is trying to run the calculated member formula when I only want to
simply retrieve the name of the calculated member but not "execute"
itīs formula in any way.

Why the #ERR? Can anybody help me out?

uranio255


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

Default Re: Simple CurrentMember and Calculated Members question - 03-09-2005 , 11:54 AM






It's because of evaluation order. If the definition of the calculated
measures are applied finally, it's natural the errors occur.

Set solve order appropriately. For example,

WITH
MEMBER [Time].[X] AS 'TupleToStr(([Measures].CurrentMember))', SOLVE_ORDER =
3

By the way, why do you use TupleToStr(([Measures].CurrentMember))? Just
Measures.CurrentMember.UniqueName returns the same value.

Ohjoo Kwon.

"Uranio255" <uranio255 (AT) gmail (DOT) com> wrote

Hi everybody,

Im starting to believe that I am misunderstanding some MDX concepts
so maybe somebody out there could give me a hand with this relatively
easy example:

To make things easier, lets say that I have a cube with one [Time]
dimension plus one measure called Measure1. Also a calculated member in
the Measures dimension called CalculatedMember1.

When I run the following MDX query:

WITH
MEMBER [Time].[X] AS 'TupleToStr(([Measures].CurrentMember))'

SELECT {[Time].[X]} ON COLUMNS,
{[Measures].[Measure1], [Measures].[CalculatedMember1]} ON ROWS
FROM [MyCube]

I obtain the complete path for the name of Measure1, thats fine, it
is a real measure in my cube. However I get #ERR for the
CalculatedMember1.

By the error messages Im getting it gives me the impression that it
is trying to run the calculated member formula when I only want to
simply retrieve the name of the calculated member but not "execute"
its formula in any way.

Why the #ERR? Can anybody help me out?

uranio255



Reply With Quote
  #3  
Old   
Uranio255
 
Posts: n/a

Default Re: Simple CurrentMember and Calculated Members question - 03-10-2005 , 03:16 AM



Ohjoo,

Thank you! Thatīs exactly what I needed. The solving order was one of
the things I didnīt know much about.

Thanks again


Ohjoo Kwon wrote:
Quote:
It's because of evaluation order. If the definition of the calculated
measures are applied finally, it's natural the errors occur.

Set solve order appropriately. For example,

WITH
MEMBER [Time].[X] AS 'TupleToStr(([Measures].CurrentMember))',
SOLVE_ORDER =
3

By the way, why do you use TupleToStr(([Measures].CurrentMember))?
Just
Measures.CurrentMember.UniqueName returns the same value.

Ohjoo Kwon.

"Uranio255" <uranio255 (AT) gmail (DOT) com> wrote in message
news:1110388685.445550.64110 (AT) z14g2000cwz (DOT) googlegroups.com...
Hi everybody,

Im starting to believe that I am misunderstanding some MDX concepts
so maybe somebody out there could give me a hand with this relatively
easy example:

To make things easier, lets say that I have a cube with one [Time]
dimension plus one measure called Measure1. Also a calculated member
in
the Measures dimension called CalculatedMember1.

When I run the following MDX query:

WITH
MEMBER [Time].[X] AS 'TupleToStr(([Measures].CurrentMember))'

SELECT {[Time].[X]} ON COLUMNS,
{[Measures].[Measure1], [Measures].[CalculatedMember1]} ON ROWS
FROM [MyCube]

I obtain the complete path for the name of Measure1, thats fine, it
is a real measure in my cube. However I get #ERR for the
CalculatedMember1.

By the error messages Im getting it gives me the impression that it
is trying to run the calculated member formula when I only want to
simply retrieve the name of the calculated member but not "execute"
its formula in any way.

Why the #ERR? Can anybody help me out?

uranio255


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.