dbTalk Databases Forums  

Analysis Manager - concat columns

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


Discuss Analysis Manager - concat columns in the microsoft.public.sqlserver.olap forum.



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

Default Analysis Manager - concat columns - 03-07-2005 , 01:48 PM






I'm having a bear of a time concating the last name and first name of my
customers.
I've created a new dimension and selected one column as the Member Key
Column "dbo"."EN_CUST_PROFILE"."PROFILE_LASTNAME"
I need to respresent the users name as a lastname, comma, firstname string.
So I input the lastname and firstname as the member key column like so:
"dbo"."EN_CUST_PROFILE"."PROFILE_LASTNAME" +
"dbo"."EN_CUST_PROFILE"."PROFILE_FIRSTNAME"
this works fine.

My problem is when i try to add a comma. The following throws an error:
"dbo"."EN_CUST_PROFILE"."PROFILE_LASTNAME" + ", "+
"dbo"."EN_CUST_PROFILE"."PROFILE_FIRSTNAME"

Can someone show me how this is done? it seems as if it should be easy.

Thanks,
Lyndon



Reply With Quote
  #2  
Old   
Ohjoo Kwon
 
Posts: n/a

Default Re: Analysis Manager - concat columns - 03-07-2005 , 07:12 PM






"dbo"."EN_CUST_PROFILE"."PROFILE_LASTNAME" + ', '+
"dbo"."EN_CUST_PROFILE"."PROFILE_FIRSTNAME"

Ohjoo Kwon

"lh" <lhughey (AT) gmail (DOT) com> wrote

Quote:
I'm having a bear of a time concating the last name and first name of my
customers.
I've created a new dimension and selected one column as the Member Key
Column "dbo"."EN_CUST_PROFILE"."PROFILE_LASTNAME"
I need to respresent the users name as a lastname, comma, firstname
string.
So I input the lastname and firstname as the member key column like so:
"dbo"."EN_CUST_PROFILE"."PROFILE_LASTNAME" +
"dbo"."EN_CUST_PROFILE"."PROFILE_FIRSTNAME"
this works fine.

My problem is when i try to add a comma. The following throws an error:
"dbo"."EN_CUST_PROFILE"."PROFILE_LASTNAME" + ", "+
"dbo"."EN_CUST_PROFILE"."PROFILE_FIRSTNAME"

Can someone show me how this is done? it seems as if it should be easy.

Thanks,
Lyndon





Reply With Quote
  #3  
Old   
lh
 
Posts: n/a

Default Re: Analysis Manager - concat columns - 03-08-2005 , 03:40 PM



DOH!!!!
Thanks for the obvious fix. I cant believe i didn't think of that.


"Ohjoo Kwon" <ojkwon (AT) olap (DOT) co.kr> wrote

Quote:
"dbo"."EN_CUST_PROFILE"."PROFILE_LASTNAME" + ', '+
"dbo"."EN_CUST_PROFILE"."PROFILE_FIRSTNAME"

Ohjoo Kwon

"lh" <lhughey (AT) gmail (DOT) com> wrote in message
news:u2vbq50IFHA.1476 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
I'm having a bear of a time concating the last name and first name of
my
customers.
I've created a new dimension and selected one column as the Member Key
Column "dbo"."EN_CUST_PROFILE"."PROFILE_LASTNAME"
I need to respresent the users name as a lastname, comma, firstname
string.
So I input the lastname and firstname as the member key column like so:
"dbo"."EN_CUST_PROFILE"."PROFILE_LASTNAME" +
"dbo"."EN_CUST_PROFILE"."PROFILE_FIRSTNAME"
this works fine.

My problem is when i try to add a comma. The following throws an error:
"dbo"."EN_CUST_PROFILE"."PROFILE_LASTNAME" + ", "+
"dbo"."EN_CUST_PROFILE"."PROFILE_FIRSTNAME"

Can someone show me how this is done? it seems as if it should be easy.

Thanks,
Lyndon







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.