IsError() should work, as in this AS 2000 Foodmart example:
http://groups.google.com/group/micro...olap/msg/cadb2
e3e58fad0df
Quote:
|
calculated members question: testing for member existence
|
From: Deepak Puri
Date: Wed, Dec 14 2005 11:37 pm
Groups: microsoft.public.sqlserver.olap
You can use the VBA IsError() function, as in this Foodmart Sales
sample. AS 2005 has a "Missing Members Mode" that could be used to
ignore such errors:
With Member [Measures].[TestExist] as
'iif(IsError(StrToValue("[Store Size in SQFT].[All Store Size in
SQFT].[20318]")),
"Missing", "Present")'
select {[Measures].[TestExist]} on columns
from Sales
...
- Deepak
Deepak Puri
Microsoft MVP - SQL Server
*** Sent via Developersdex http://www.developersdex.com ***