如果我有[USER]
维度和2个层次结构,FIRST NAME
和LAST NAME
。如何创建这两个层次结构值FULL NAME
的计算成员?
答案 0 :(得分:2)
但是如果添加到您的仓库维度并作为新层次结构添加到多维数据集中,这会更好
连接member_caption属性的示例:
WITH
MEMBER [Measures].[JOINEDUP] AS
[Customer].[Customer].CurrentMember.Member_Caption + ' '
+
[Customer].[Gender].CurrentMember.Member_Caption
SELECT
{[Measures].[JOINEDUP]} ON 0
,
[Customer].[Customer].[Customer] * [Customer].[Gender].[Gender] ON 1
FROM [Adventure Works];
上述结果:
以下是icCube
示例:
With
Member MyOutput AS [Date Dim.Weekday Hierarchy].[Weekday].name + " " + [Time Dimension.Time Hierarchy].[Hour] + " " + STR( ([Measures].[Page Views]) )
SELECT
NON EMPTY {[Measures].[MyOutput]} ON COLUMNS,
NON EMPTY {
Crossjoin({[Date Dim.Weekday Hierarchy].[Weekday].Members},
{[Time Dimension.Time Hierarchy].[Hour].Members})
} ON ROWS
FROM [All Facts]