Return 员工数 > 1 MDX SQL Server 2012
Return Employee Count > 1 MDX SQL Server 2012
我正在尝试编写一个简单的 MDX 查询来获取大于 1 的员工人数。我可以在行中使用过滤器,但如何才能查询到计数大于 1 的 return 个值?
select NON EMPTY {[Measures].[Employee Count]} ON COLUMNS,
[Employee].[Employee ID].[Employee ID] ON ROWS
from [Human Capital]
试试这个:
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]
我正在尝试编写一个简单的 MDX 查询来获取大于 1 的员工人数。我可以在行中使用过滤器,但如何才能查询到计数大于 1 的 return 个值?
select NON EMPTY {[Measures].[Employee Count]} ON COLUMNS,
[Employee].[Employee ID].[Employee ID] ON ROWS
from [Human Capital]
试试这个:
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]