dbTalk Databases Forums  

Column alias in MDX

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


Discuss Column alias in MDX in the microsoft.public.sqlserver.olap forum.



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

Default Column alias in MDX - 11-21-2004 , 11:35 PM






Hi all,

How can I give Column alias in MDX. For
Example I have a column [Measures].[Avg1002growth]. How can i change
[Measures].[Avg1002growth] column name to an understandable name. ( like
'as' in Sql , [Measures].[Avg1002growth] as [Average Revenue]).


Thanks in advance

Subin

Reply With Quote
  #2  
Old   
Gerhard Jauk
 
Posts: n/a

Default Re: Column alias in MDX - 11-22-2004 , 12:33 AM






Hi Subin,

you can declare own members at the beginnig of mdx statement.

Here a little example:

with member [Measures].[My own name for Sales] as '([Measures].[Store
Sales])'
select
{[Measures].[My own name for Sales]} on columns,
{[Product].[Product Department].members} on rows
from Sales

Gerhard


"Subin" <Subin (AT) discussions (DOT) microsoft.com> schrieb im Newsbeitrag
news:1CDB4181-0F10-4BE1-BF7D-0B1365F5C9A1 (AT) microsoft (DOT) com...
Quote:
Hi all,

How can I give Column alias in MDX. For
Example I have a column [Measures].[Avg1002growth]. How can i change
[Measures].[Avg1002growth] column name to an understandable name. ( like
'as' in Sql , [Measures].[Avg1002growth] as [Average Revenue]).


Thanks in advance

Subin



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.