dbTalk Databases Forums  

RANKING in OLAP cube

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


Discuss RANKING in OLAP cube in the microsoft.public.sqlserver.olap forum.



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

Default RANKING in OLAP cube - 04-15-2005 , 02:22 PM






Does anyone knows, if it is possible or not to write calculated member, that
makes ranking value (ranks dimension members by measures values - 1,2,3,4
and so on) for the rows in the cube? Or maybe there is another way to make
ranking for OLAP data?

Ernestas



Reply With Quote
  #2  
Old   
SQL McOLAP
 
Posts: n/a

Default RE: RANKING in OLAP cube - 04-15-2005 , 03:06 PM






There's a native RANK function in MDX

Rank(«Tuple», «Set»[, «Calc Expression»])


Here's an example, say you wanted to rank cities based upon Store Sales for
all time:


WITH
SET [Top Store Sales] as 'Order([customers].[city].members,[Measures].[Store
Sales],BDESC)'
member [measures].[store sales rank] as 'Rank(
[customers].CurrentMember,[Top Store Sales])'

select [customers].[city].members on rows,
{ [measures].[store sales rank] } on columns
from sales


"Ernestas" wrote:

Quote:
Does anyone knows, if it is possible or not to write calculated member, that
makes ranking value (ranks dimension members by measures values - 1,2,3,4
and so on) for the rows in the cube? Or maybe there is another way to make
ranking for OLAP data?

Ernestas




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.