I'm new to MDX and i was trying to use the YTD function on my cube but I'm getting a problem with it.
If I specify the date in the code it works fine:
WITH MEMBER [Time].[Year - Quarter - Month - Date].[YTD_SALES] AS
Aggregate(
YTD([Time].[Year - Quarter - Month - Date].[August 2014])
)
SELECT
[Time].[Year - Quarter - Month - Date].[YTD_SALES] ON COLUMNS,
[Item].[Item].Children ON ROWS
FROM
[TBA_SALES]
WHERE
[Measures].[Sales LCY]
but if I replace [March 2014] with CurrentMember the results come back all null.
Appreciate any help.