dbTalk Databases Forums  

Value available in cube, but not in MDX example query application

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


Discuss Value available in cube, but not in MDX example query application in the microsoft.public.sqlserver.olap forum.



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

Default Value available in cube, but not in MDX example query application - 12-16-2004 , 06:15 AM






Hi,

I have a cube with a calculated measure. In the cube the value shows
correctly, but when i create a MDX query to display this calculated measure i
get an error:

1.#INF or -1.#IND

Anyone have an explanation for this?

The calculated measure is:

[Measures].[Available]/Count({descendants([Unit].Currentmember,[Unit].[Unit
Name])})

Thnx,

Stanley


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

Default RE: Value available in cube, but not in MDX example query application - 12-16-2004 , 08:05 AM






Okay,
so i have found the problem. When i use a normal select statement it works:

select {..} on columns,
{..} on rows
from ...

But when using a With member statement, that's where it goed wrong
With member [....].ThisValue as ''
select {..} on columns,
{..} on rows
from ...

So, anybody knows why this happens?

Thnx

Stanley

"Stanley" wrote:

Quote:
Hi,

I have a cube with a calculated measure. In the cube the value shows
correctly, but when i create a MDX query to display this calculated measure i
get an error:

1.#INF or -1.#IND

Anyone have an explanation for this?

The calculated measure is:

[Measures].[Available]/Count({descendants([Unit].Currentmember,[Unit].[Unit
Name])})

Thnx,

Stanley


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

Default RE: Value available in cube, but not in MDX example query applicat - 12-23-2004 , 05:29 AM



Solved. I have a where clause also in the query. I've switched the with
member dimension with the where claus dimension.

"Stanley" wrote:

Quote:
Okay,
so i have found the problem. When i use a normal select statement it works:

select {..} on columns,
{..} on rows
from ...

But when using a With member statement, that's where it goed wrong
With member [....].ThisValue as ''
select {..} on columns,
{..} on rows
from ...

So, anybody knows why this happens?

Thnx

Stanley

"Stanley" wrote:

Hi,

I have a cube with a calculated measure. In the cube the value shows
correctly, but when i create a MDX query to display this calculated measure i
get an error:

1.#INF or -1.#IND

Anyone have an explanation for this?

The calculated measure is:

[Measures].[Available]/Count({descendants([Unit].Currentmember,[Unit].[Unit
Name])})

Thnx,

Stanley


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.