Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Analysis Services (2000)
 -1.#IND

Author  Topic 

KLang23
Posting Yak Master

115 Posts

Posted - 2006-02-13 : 13:30:12
Some of the cells returned from a simple calculation are returning this "-1.#IND". Most of the other cells have the correct numbers. Anyone know specifically what this means? (Overflow, divide by zero, etc..)

Thanks

rockmoose
SQL Natt Alfen

3279 Posts

Posted - 2006-02-13 : 14:23:23
Either divide by zero, or divide by an empty cell (undefined value).
I think that divide by zero is -1.#INF, if I remember right

rockmoose
Go to Top of Page

KLang23
Posting Yak Master

115 Posts

Posted - 2006-02-13 : 19:53:31
Thank you.

Do you have to prevent the error with logic or can you instruct the cube to ignore that cell...
Go to Top of Page

rockmoose
SQL Natt Alfen

3279 Posts

Posted - 2006-02-15 : 04:52:10
use iif() and isempty functions in the mdx formula.
Something to the effect of:
iif(isempty([myMeasure]) or [myMeasure]=0, 0, [myOtherMeasure]/[myMeasure])

Present 0 instead of -1.#INF when the "offending" measure is 0 or empty, but you can present the value that makes most sense.
Perhaps null or ''.

You will have to experiment, this is just from memory, so the mdx syntax might be wrong.

rockmoose
Go to Top of Page
   

- Advertisement -