工作项树层次结构

4
我有一个查询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])

但它不起作用。

您能解决这个问题吗?

提前致谢。


2
你能否提供更多的信息,而不仅仅是“它不能工作”?你是否收到了特定的错误消息,或者结果中返回的数字不是你想要的? - Magnus Smith
1个回答

1

[工作项树].[工作项树层次结构].currentmember.属性("System_Id")


如果您能描述或解释您的代码,那会更有帮助。 - Rohit Gupta
我的编辑被拒绝了。解释-您必须指定要查看属性的成员。CURRENTMEMBER函数用于指向当前范围内的成员。 - SouravA

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接