我对 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])
但它不会工作。
你这个问题可以吗?
提前致谢。
最佳答案
[工作项树].[工作项树层次结构]。 当前成员(member) .Properties("System_Id")
关于mdx - 工作项树层次结构,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9933588/