我有一个查询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])
但它不起作用。
您能解决这个问题吗?
提前致谢。