I am trying to write a simple MDX query to get employee counts that are more than one. I am able to use filter in the rows but how can I get the query to only return values whose count is more than one?
select NON EMPTY {[Measures].[Employee Count]} ON COLUMNS,
[Employee].[Employee ID].[Employee ID] ON ROWS
from [Human Capital]
Try this:
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]