dbTalk Databases Forums  

AS2005: how to retrieve the "currentaxis" of a member?

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


Discuss AS2005: how to retrieve the "currentaxis" of a member? in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jéjé
 
Posts: n/a

Default AS2005: how to retrieve the "currentaxis" of a member? - 07-07-2006 , 12:12 PM






Hi,

I want to know in which axis a dimension is currently used.

I'm using this formula:

iif(VBA!ISERROR(extract(axis(0) , [dimension].[attribute]).count ),
iif(VBA!ISERROR(extract(axis(1) ,[dimension].[attribute]).count ),2,
1),0)

but maybe there is a more beautyfull solution?

jerome.



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.