Quantcast
Channel: SQLServerCentral » Data Warehousing » Analysis Services » Latest topics
Viewing all articles
Browse latest Browse all 1341

MDX query using hierarchy gives Subtotals

$
0
0
Hi,I don't have a background in MDX queries so I may be missing an obvious point here.I have a MDX query which includes a hierarchy in the ROWS section. When I execute the query (in SSRS) the records that get returned include the Totals for each level in the hierarchy. Is there any way to stop this from happening? At the moment numbers are being multiplied in the report because they are also being totalled in the MDX query.Thanks in advance for any suggestions.A simplified version of the code is below:[code="other"]SELECT { [Measures].[Gross] } ON COLUMNS ,NON EMPTY{ [DimDate].[Hierarchy - Fiscal Day].MEMBERS*[DimLocation].[Location Code].[Location Code].ALLMEMBERS*[DimLocation].[Location Description].[Location Description].ALLMEMBERS } DIMENSION PROPERTIES MEMBER_CAPTION ,MEMBER_UNIQUE_NAME ON ROWSFROM ( SELECT StrToSet (@Region ,CONSTRAINED ) ON COLUMNS FROM ( SELECT StrToMember ('[DimDate].[Fiscal Day Of Year].&[1]' ,CONSTRAINED ) : StrToMember(@DimDateFiscalDayOfYear) ON COLUMNS FROM [SourceCube] ) )WHERE ( [DimTransactions].[Void].&[0] )CELL PROPERTIES VALUE ,BACK_COLOR ,FORE_COLOR ,FORMATTED_VALUE ,FORMAT_STRING ,FONT_NAME ,FONT_SIZE ,FONT_FLAGS;[/code]

Viewing all articles
Browse latest Browse all 1341

Trending Articles