1

我正在尝试编写一个简单的 MDX 查询来获取超过一个的员工人数。我可以在行中使用过滤器,但我怎样才能让查询只返回计数大于一的值?

select NON EMPTY {[Measures].[Employee Count]} ON COLUMNS,
    [Employee].[Employee ID].[Employee ID] ON ROWS
from [Human Capital]

在此处输入图像描述

4

1 回答 1

2

尝试这个:

WITH MEMBER [Measures].[Employee Count 2+] as
 IIf(
  [Measures].[Employee Count]>1,
  [Measures].[Employee Count],
  Null
 )
select {[Measures].[Employee Count 2+]} ON COLUMNS,
   NON EMPTY [Employee].[Employee ID].[Employee ID].Members ON ROWS
from [Human Capital]
于 2018-04-08T02:02:25.847 回答