dbTalk Databases Forums  

Obtaining name of member from given cell

comp.databases.olap comp.databases.olap


Discuss Obtaining name of member from given cell in the comp.databases.olap forum.



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

Default Obtaining name of member from given cell - 09-20-2004 , 07:18 AM






In Analysis Manager, I am trying to create a data cell action in the
cube, that prints the name of the member of Gender dimension, in a
certain cube. So when the cube data is displayed, rightclicking on a
cell will show me the corresponding member of the Gender dimension for
that cell. The action is defined as:
"cmd /k echo """ + [Handset].CurrentMember.UniqueName + """"

When browsing through the cube, if the X-axis has measures and Y-axis
has Stores as dimensions, and I click on a cell to invoke the action,
it prints [Gender].[All Gender], which is right as the default member
for the Gender dimension in [All Gender].
Next, if I slice the cube with Gender=M, the data sheet shows the cube
data correctly sliced. But if I now invoke the action to print the
name of Gender member, it again prints [Gender].[All Gender]. I don't
expect this because the cell I am clicking on is part of the slice,
and hence the action should show [Gender].[M].

However, if I put Gender as a dimension on an axis, and invoke the
action, without setting a slice, the action correctly shows
[Gender].[M] or [Gender].[F] depending on the cell I click on.

Is there any way to obtain the exact member name on any dimension from
a given cell, irrespective of whether the dimension is put on an axis
or not?

Thanks
Yash

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.