我编写了一个MDX查询来计算员工项目的工作量百分比,但它给了所有成员元组。这里给出了限制结果集的具体日期。我希望有一种简单的方法可以从结果中删除所有成员元组?
WITH
MEMBER [Measures].[total] as
([Measures].[Effort Total -Effort],[Chorus Project].[Project Name].[ALL])
MEMBER [Measures].[Percentage] AS
((IIF(
([Measures].[Effort Total -Effort], [Chorus Project].[Oracle Project ID].currentmember) = 0,NULL,
(([Chorus Project].[Oracle Project ID].currentmember,[Measures].[Effort Total -Effort]))))/
[Measures].[total])*100
SELECT
NON EMPTY {
[Measures].[Effort Total -Effort],
[Measures].[Percentage]
} ON COLUMNS,
NON EMPTY {
([Employee].[Login Name].MEMBERS,[Chorus Project].[Project Name].MEMBERS ) } ON ROWS
FROM [Delivery_Cube]
where [Date].[Date].&[20180201]
输出结果为: