dbTalk Databases Forums  

Obtaining name of member from given cell

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


Discuss Obtaining name of member from given cell in the microsoft.public.sqlserver.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
  #2  
Old   
Dave Wickert [MSFT]
 
Posts: n/a

Default Re: Obtaining name of member from given cell - 09-20-2004 , 11:38 AM






If invoking the cell action via the cube browser, then there is a known bug
that coordinates are not evaluated properly. Try this in a real application
(or your own code) and see what happens. You may just be running into a
limitation of the cube browser.
--
Dave Wickert [MSFT]
dwickert (AT) online (DOT) microsoft.com
Program Manager
BI SystemsTeam
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no rights.

"Yash" <yashgt (AT) yahoo (DOT) com> wrote

Quote:
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
  #3  
Old   
Yash
 
Posts: n/a

Default Re: Obtaining name of member from given cell - 09-21-2004 , 02:42 AM



I tried with Crystal Analysis as the cube browser, and it worked as expected.
Thanks a lot.

-Yash




"Dave Wickert [MSFT]" <dwickert (AT) online (DOT) microsoft.com> wrote

Quote:
If invoking the cell action via the cube browser, then there is a known bug
that coordinates are not evaluated properly. Try this in a real application
(or your own code) and see what happens. You may just be running into a
limitation of the cube browser.
--
Dave Wickert [MSFT]
dwickert (AT) online (DOT) microsoft.com
Program Manager
BI SystemsTeam
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no rights.

"Yash" <yashgt (AT) yahoo (DOT) com> wrote in message
news:5a373b1d.0409200418.281880fc (AT) posting (DOT) google.com...
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.