January (only contains data from the fifteenth to the thirty first)
February (data for entire month)
March (data for entire month)
April (only contains data from the first to the fourteenth)
I know how to filter by month and aggregate by month:
SELECT [Date].[Month].[2005-01]:[Date].[Month].[2005-04] ON Columns FROM [My Cube];
I also know how to filter by day and aggregate by day:
SELECT [Date].[Day].[2005-01-15]:[Date].[Day].[2005-04-14] ON Columns FROM [My Cube];
But I don't know how to filter by day and aggregate by month. Is this at all possible using MDX?
SELECT Date.Month.Month.MEMBERS ON 0 FROM
(SELECT [Date].[Day].[2005-01-15]:[Date].[Day].[2005-04-14] ON Columns FROM [My Cube])
|||Mosha Pasumansky wrote: SELECT Date.Month.Month.MEMBERS ON 0 FROM
(SELECT [Date].[Day].[2005-01-15]:[Date].[Day].[2005-04-14] ON Columns FROM [My Cube])
Brilliant! That worked. Thanks!
No comments:
Post a Comment