I want to display hierarchy in SSRS which include the members with null measure. The problem in mdx query is that when I remove NON EMPTY clouse I got 'System.OutOfMemoryException' due to the large crossjoin between time, products and hierarchy dimension. Any idea how to soleve it? The query is as follow:
SELECT
NON EMPTY { (
[Measures].[SOME MEASURE]
)} ON COLUMNS,
NON EMPTY { (
[Organization Structure].[Description].[Description].Allmembers
* [Organization Structure].[ID].[ID]
* [Organization Structure].[ParentID].[ParentID]
*[Products].[Name].[Name]
*[Time].[Hierarchy].[MothsAndDays]
)}
DIMENSION
PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME, PARENT_UNIQUE_NAME,
LEVEL_NUMBER ON ROWS
FROM [MyCube]