Mdx 工作项树层次结构

Mdx 工作项树层次结构,mdx,Mdx,我对TFS OLAP有一个mdx查询,如下所示: SELECT [Work Item Tree].[Work Item Tree Hierarchy].&[269] ON ROWS, {[Measures].[Work Item Count], [Measures].[Microsoft_VSTS_Scheduling_OriginalEstimate], [Measures].[Microsoft_VSTS_Scheduling_RemainingWork]} ON COLUMNS

我对TFS OLAP有一个mdx查询,如下所示:

SELECT 
[Work Item Tree].[Work Item Tree Hierarchy].&[269]
ON ROWS,
{[Measures].[Work Item Count],
[Measures].[Microsoft_VSTS_Scheduling_OriginalEstimate],
 [Measures].[Microsoft_VSTS_Scheduling_RemainingWork]} ON COLUMNS
FROM
[Team System]
WHERE
([Work Item Link Type].[Link Name].&[Parent], [Work Item].[System_WorkItemType].&[Task])
WITH MEMBER [Measures].[OriginalEstimate] AS
(STRTOMEMBER("[Work Item].[System_Id].[" + [Work Item Tree].[Work Item Tree Hierarchy].Properties( "System_Id" )+"]"), [Measures].[Microsoft_VSTS_Scheduling_OriginalEstimate])

SELECT 
[Work Item Tree].[Work Item Tree Hierarchy].&[269]
ON ROWS,

{[Measures].[OriginalEstimate], [Measures].[Work Item Count],
 [Measures].[Microsoft_VSTS_Scheduling_OriginalEstimate],
 [Measures].[Microsoft_VSTS_Scheduling_RemainingWork]} ON COLUMNS
FROM
[Team System]
WHERE
([Work Item Link Type].[Link Name].&[Parent], [Work Item].[System_WorkItemType].&[Task])
它工作得很好,但是我需要作为这个查询的结果,不仅需要树层次结构中的度量值,还需要连接的工作项的度量值。大概是这样的:

SELECT 
[Work Item Tree].[Work Item Tree Hierarchy].&[269]
ON ROWS,
{[Measures].[Work Item Count],
[Measures].[Microsoft_VSTS_Scheduling_OriginalEstimate],
 [Measures].[Microsoft_VSTS_Scheduling_RemainingWork]} ON COLUMNS
FROM
[Team System]
WHERE
([Work Item Link Type].[Link Name].&[Parent], [Work Item].[System_WorkItemType].&[Task])
WITH MEMBER [Measures].[OriginalEstimate] AS
(STRTOMEMBER("[Work Item].[System_Id].[" + [Work Item Tree].[Work Item Tree Hierarchy].Properties( "System_Id" )+"]"), [Measures].[Microsoft_VSTS_Scheduling_OriginalEstimate])

SELECT 
[Work Item Tree].[Work Item Tree Hierarchy].&[269]
ON ROWS,

{[Measures].[OriginalEstimate], [Measures].[Work Item Count],
 [Measures].[Microsoft_VSTS_Scheduling_OriginalEstimate],
 [Measures].[Microsoft_VSTS_Scheduling_RemainingWork]} ON COLUMNS
FROM
[Team System]
WHERE
([Work Item Link Type].[Link Name].&[Parent], [Work Item].[System_WorkItemType].&[Task])
但这行不通

你能回答这个问题吗


提前感谢。

[Work Item Tree].[Work Item Tree Hierarchy]。currentmember.Properties(“系统Id”)

您能给出比“它不起作用”更多的东西吗?您是否收到了特定的错误消息,或者结果中返回的数字不是您想要的?如果您描述或解释您的代码,会更有帮助。我对该答案的编辑被拒绝。解释-必须指定要查看其属性的成员。
CURRENTMEMBER
函数用于指向当前在范围内的成员。