dbTalk Databases Forums  

Re: MDX - Rank function

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Re: MDX - Rank function in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Deepak Puri
 
Posts: n/a

Default Re: MDX - Rank function - 02-16-2006 , 09:34 PM






Here's a sample Adventure Works query to try:

Quote:
With Member [Measures].[SiblingRank] as
Rank(StrToSet("Axis(1)").Item(0).Item(0).Dimension .CurrentMember,
Intersect(StrToSet("Axis(1)").Item(0).Item(0).Dime nsion.CurrentMember.Si
blings,
StrToSet("Axis(1)")))

select {[Measures].[Order Quantity], [Measures].[SiblingRank]} on 0,
DrillDownLevel([Geography].[Geography].[Country].Members) on 1
from [Adventure Works]
Quote:

- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.