dbTalk Databases Forums  

Need to append to levels in a dimension into a single one.

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


Discuss Need to append to levels in a dimension into a single one. in the microsoft.public.sqlserver.olap forum.



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

Default Need to append to levels in a dimension into a single one. - 11-18-2005 , 10:56 AM






I have a dimension that contains the Territory Desc and a Territory ID.
I have a crossjoin([Territory].[Territory Desc].Members,[District].[District
Desc].Member)
I need to return the Territory information as
[Territory Desc] + ' ' + [Territory ID]
I try using the Descendants, Drilldown , but they do not work. I need to do
using a mdx, but will happy if I can do it too

thank you
Tomas


Reply With Quote
  #2  
Old   
Darren Gosbell
 
Posts: n/a

Default Re: Need to append to levels in a dimension into a single one. - 11-20-2005 , 10:41 PM






Is Territory ID another level or is it a property?

Seeing that you have Territory Desc as a level, I cannot see it making
much sense to have an ID level. Surely ID and Desc are of the same
granularity.

Assuming it is a property, probably the easiest thing to do is to create
a calculated measure like:

Territory.CurrentMember.Name + ' ' + Territory.CurrentMember.Properties
("Territory ID")

....and display that as the first column.

--
Regards
Darren Gosbell [MCSD]
Blog: http://www.geekswithblogs.net/darrengosbell

In article <C2BF2AF8-89E5-47CB-B8D2-30DB803A5B39 (AT) microsoft (DOT) com>,
Tomas (AT) discussions (DOT) microsoft.com says...
Quote:
I have a dimension that contains the Territory Desc and a Territory ID.
I have a crossjoin([Territory].[Territory Desc].Members,[District].[District
Desc].Member)
I need to return the Territory information as
[Territory Desc] + ' ' + [Territory ID]
I try using the Descendants, Drilldown , but they do not work. I need to do
using a mdx, but will happy if I can do it too

thank you
Tomas




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.