Quantcast
Channel: SQL Server Analysis Services Forum
Viewing all articles
Browse latest Browse all 2472

Order function in the MDX

$
0
0

Hi Experts,

I have an issue with Order function I have Implemented my code like this 

  SELECT
NON EMPTY
    {
	[Measures].[Value]

    }
 ON COLUMNS 
 ,NON EMPTY
order(
	{
	 [Dim].[Inter].CHILDREN
	*[Dim].[Description].CHILDREN
	*[Dim].[Code].CHILDREN
	*[Dim].[Rank].[All].CHILDREN
	}
	,[Dim].[Rank].membervalue,bdesc
    ) 

   ON ROWS 
 FROM [Cube]

I want the results based on ranks in descending Order. I tried like above but it is not displaying in proper Order. I tried without 'b' before desc as well but still it is not working. Could anyone help me 

Thanks,

RK


Viewing all articles
Browse latest Browse all 2472

Latest Images

Trending Articles



Latest Images

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