dbTalk Databases Forums  

Retreiving keys for dimension rather than names

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


Discuss Retreiving keys for dimension rather than names in the microsoft.public.sqlserver.olap forum.



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

Default Retreiving keys for dimension rather than names - 08-18-2005 , 11:08 AM






I am extracting data form a cube using MDX and I want to obtain the foreign
key for the dimensions returned rather than the name. Is it possible to do
this.

Reply With Quote
  #2  
Old   
Jim_OLAP
 
Posts: n/a

Default RE: Retreiving keys for dimension rather than names - 08-19-2005 , 04:07 PM






Tom,

Try something like --

member measures.[Keyname] as '[Dimension].currentmember.key'

HTH,

Jim

"Tom M" wrote:

Quote:
I am extracting data form a cube using MDX and I want to obtain the foreign
key for the dimensions returned rather than the name. Is it possible to do
this.

Reply With Quote
  #3  
Old   
Tom M
 
Posts: n/a

Default RE: Retreiving keys for dimension rather than names - 08-22-2005 , 03:08 AM



Using the MDX sample application ran the following against the Sales cube in
the Foodmart2000 sample
With MEMBER [Measures].[Product Key] as '[Product].CurrentMember.key'
Select NonEmptyCrossJoin([Promotion Media].Members, [Product].[Product
Family].Members) on rows,
{ [Measures].Members, [Measures].[Product key]} on columns
From Sales

In the Product Key column all that was displyaed was #ERR

"Jim_OLAP" wrote:

Quote:
Tom,

Try something like --

member measures.[Keyname] as '[Dimension].currentmember.key'

HTH,

Jim

"Tom M" wrote:

I am extracting data form a cube using MDX and I want to obtain the foreign
key for the dimensions returned rather than the name. Is it possible to do
this.

Reply With Quote
  #4  
Old   
Jim_OLAP
 
Posts: n/a

Default RE: Retreiving keys for dimension rather than names - 08-26-2005 , 07:35 AM



Tom,


With MEMBER [Measures].[Product Key] as
'[Product].CurrentMember.properties("ID")', solve_order=1

HTH,

Jim

"Tom M" wrote:

Quote:
Using the MDX sample application ran the following against the Sales cube in
the Foodmart2000 sample
With MEMBER [Measures].[Product Key] as '[Product].CurrentMember.key'
Select NonEmptyCrossJoin([Promotion Media].Members, [Product].[Product
Family].Members) on rows,
{ [Measures].Members, [Measures].[Product key]} on columns
From Sales

In the Product Key column all that was displyaed was #ERR

"Jim_OLAP" wrote:

Tom,

Try something like --

member measures.[Keyname] as '[Dimension].currentmember.key'

HTH,

Jim

"Tom M" wrote:

I am extracting data form a cube using MDX and I want to obtain the foreign
key for the dimensions returned rather than the name. Is it possible to do
this.

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.