At the following MDX
code I want to get the aggregate of measure only for members that are in the specified last time (like in example 01/06/2015), else I don't want them .
I tried existing and exists but without any luck.
I believe i have to use the IIF
function
like:
IIF DAYTIME, MEASURE D NOT NULL THEN AGGREGATE....
(if for the specific month, measure D is bigger than 0 then SUM measure D for the specific time range)
ELSE NULL.
(Else not print it on output)
And then filter E.members where SUM
measure D >1
ON ROWS.
WITH
MEMBER A AS
b + C
MEMBER [Measures].[Aggregate] AS
Aggregate
(
DAYTIME.[Month].&[2013-01-01T00:00:00]
:
[DAYTIME].[Month].&[2015-06-01T00:00:00]
,[Measures].[D]
)
SELECT
[Measures].[Aggregate] ON 0
,Filter
(
Exists
(
[E].MEMBERS
,[DAYTIME].[Month].&[2015-06-01T00:00:00]
)
,
[Measures].[Aggregate] > 1
) ON 1
FROM [CUBE];