dbTalk Databases Forums  

Changing MDX columns in output

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


Discuss Changing MDX columns in output in the microsoft.public.sqlserver.olap forum.



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

Default Changing MDX columns in output - 10-15-2004 , 04:14 PM






I'm getting demension properties like this:
DIMENSION PROPERTIES [Zone].[Level1].[Key],[Zone].[Level2].[Key]
on rows.

But in my output I get colums

[Zone].[Key] and [Zone].[Key]

and reporting services can't tell the difference?

is there anyway to:
DIMENSION PROPERTIES [Zone].[Level1].[Key] as Key1,[Zone].[Level2].[Key] as
Key2
on rows.



Reply With Quote
  #2  
Old   
Cindy Lee
 
Posts: n/a

Default Re: Changing MDX columns in output - 10-15-2004 , 04:26 PM






Sorry, here's the whole query. I don't think i can do a with members as at
the top for this.


SELECT
{[Measures].[Sends]}

on axis(0),
Generate (
TopCount ( [Zone].&[Level1].children, 5, [Sends]),
TopCount (Descendants([Zone].CurrentMember, 2),3,[Sends] )


) DIMENSION PROPERTIES [Zone].[level1].[Key],[Zone].[level2].[Key] ,
[Zone].[level1].[Name], [Zone].[level3].[Name]


on axis (1)
FROM [All Communication Analysis]
"Cindy Lee" <cindylee (AT) hotmail (DOT) com> wrote

Quote:
I'm getting demension properties like this:
DIMENSION PROPERTIES [Zone].[Level1].[Key],[Zone].[Level2].[Key]
on rows.

But in my output I get colums

[Zone].[Key] and [Zone].[Key]

and reporting services can't tell the difference?

is there anyway to:
DIMENSION PROPERTIES [Zone].[Level1].[Key] as Key1,[Zone].[Level2].[Key]
as
Key2
on rows.





Reply With Quote
  #3  
Old   
Cindy Lee
 
Posts: n/a

Default Re: Changing MDX columns in output - 10-15-2004 , 05:21 PM



Ok, found it

DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_KEY


"Cindy Lee" <cindylee (AT) hotmail (DOT) com> wrote

Quote:
Sorry, here's the whole query. I don't think i can do a with members as
at
the top for this.


SELECT
{[Measures].[Sends]}

on axis(0),
Generate (
TopCount ( [Zone].&[Level1].children, 5, [Sends]),
TopCount (Descendants([Zone].CurrentMember, 2),3,[Sends] )


) DIMENSION PROPERTIES [Zone].[level1].[Key],[Zone].[level2].[Key] ,
[Zone].[level1].[Name], [Zone].[level3].[Name]


on axis (1)
FROM [All Communication Analysis]
"Cindy Lee" <cindylee (AT) hotmail (DOT) com> wrote in message
news:%23MdhawvsEHA.2808 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
I'm getting demension properties like this:
DIMENSION PROPERTIES [Zone].[Level1].[Key],[Zone].[Level2].[Key]
on rows.

But in my output I get colums

[Zone].[Key] and [Zone].[Key]

and reporting services can't tell the difference?

is there anyway to:
DIMENSION PROPERTIES [Zone].[Level1].[Key] as Key1,[Zone].[Level2].[Key]
as
Key2
on rows.







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.