Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

MDX Member Properties ON ROWS

$
0
0

Is there a way to include member properties on rows? All the examples I have found so far are like this below and include the result on columns. The custom ASP.Net code we have for reporting uses SSRS and the local report viewer object with MDX and I need the LEVEL_NUMBER as part of the rows so I can sort the hierarchy results by the level.

WITH
     MEMBER [Leader_LEVEL] as [Employee].[Employees].CurrentMember.Properties("LEVEL_NUMBER")
SELECT 
	 {  
		[Measures].[Sales Amount Quota] 
		, [Leader_LEVEL]
	 } ON COLUMNS
, NON EMPTY { 
	DESCENDANTS([Employee].[Employees].&[277],1,SELF_AND_BEFORE)
 } ON ROWS
 FROM ( SELECT ( { [Date].[Fiscal Year].&[2004] } ) ON COLUMNS 
 FROM [Adventure Works])


Viewing all articles
Browse latest Browse all 14337

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>