A sample Dimension table structure is given below for reference.
CREATE TABLE [dbo].[DimDoctor]
(
[skDoctorKey] [int] IDENTITY(1,1) NOT NULL,
[DocCode] [char](9) NOT NULL,
[FirstName] [varchar](30) NULL,
[lastName] [varchar](30) NULL,
[MiddleName] [varchar](30) NULL
)
About table: Here, skDoctorKey is an identity column. The primary key is DocCode 3 name columns.
Microstrategy: If we are using this table in Microstrategy, we will use like, [DocCode] is the ATTRIBUTE and [FirstName],[lastName] and [MiddleName] are three qualifiers of the attribute DocCode. The end result from this table is a single attribute with three qualifiers.
SSAS: I added DocCode as 1 attribute, with keyColumn as [DocCode]. The three columns [FirstName],[lastName] and [MiddleName] need to be added as seperate attributes. For all of them, The keyColumn is same which is [DocCode]. The only way I found was drag [FirstName],[lastName] and [MiddleName] into the attributes pane and then change key column to [DocCode] for all 3. I need to do this one by one.
Forgive me if i made a mistake in the SSAS or Microstrategy concept..
Question:
----------
In SSAS, is this the right way of adding multiple attributes with same key?,
Or can we associate [FirstName],[lastName] and [MiddleName]
with the 1st attribute DocCode in any better way?
----------