dbTalk Databases Forums  

Non existing dimension

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


Discuss Non existing dimension in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
necati@cbksoft
 
Posts: n/a

Default Non existing dimension - 04-27-2006 , 03:06 AM






Suppose I have a clientID dimension in my Cube and again suppose that i
create a query for a ClientID which does not exist in the values of that
dimension. Than i got an exception declaring "non existing dimension". Is
there any way of not receiving an exception and (for example) get blank table
instead.

I tried to use isError property to handle it but can not succeed.

Or should i just catch these exceptions on the software side?

Help please
--
Necati Sekkeli
CBKSoft
Junior Software Developer

Reply With Quote
  #2  
Old   
necati@cbksoft
 
Posts: n/a

Default RE: Non existing dimension - 04-27-2006 , 03:13 AM






By the way ı am using AS2000. Thanks for all.

--
Necati Sekkeli
CBKSoft
Junior Software Developer


"necati@cbksoft" wrote:

Quote:
Suppose I have a clientID dimension in my Cube and again suppose that i
create a query for a ClientID which does not exist in the values of that
dimension. Than i got an exception declaring "non existing dimension". Is
there any way of not receiving an exception and (for example) get blank table
instead.

I tried to use isError property to handle it but can not succeed.

Or should i just catch these exceptions on the software side?

Help please
--
Necati Sekkeli
CBKSoft
Junior Software Developer

Reply With Quote
  #3  
Old   
Deepak Puri
 
Posts: n/a

Default RE: Non existing dimension - 04-27-2006 , 10:25 PM



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
...
Quote:

- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


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.