![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
| With Member [Measures].[ItemRank] as |
#3
| |||
| |||
|
| Select CrossJoin({[Time].[1997].[Q3].[7], |
| I donno how to write the calculated member [Measures].[ItemRank] which is |
|
When you say "all items on row", it's not clear what these items are - since July and August are already on columns. But here's a sample ranking query for Foodmart Sales: With Member [Measures].[ItemRank] as 'Rank(Axis(0).Item(0).Item(0).Dimension.CurrentMem ber, Order(Axis(0).Item(0).Item(0).Dimension.CurrentMem ber.Level.Members, Axis(1).Item(0), BDESC), Axis(1).Item(0))' Select {[Time].[1997].[Q3].[7], [Time].[1997].[Q3].[8]} on columns, {[Measures].[Unit Sales], [Measures].[ItemRank]} on rows from Sales - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
#4
| |||
| |||
|
| With |
#5
| |||
| |||
|
|
Dear all, I want to make a calculated member to show the rank of item based on sales figures. For example, if I choose July and August in Time dimension on column and all items on row, the calculated member should show item rank for July and August. July rank and August rank should be based on July sales and August sales respectively. I have tried the following MDX, rank({[Item].members}, [Measures].[Sales]). However, it is not what I want. Item ranks for July and August are the same. I guess the value is the item rank based on sum of July and August Sales. Can anyone suggest me a solution of the above problem? Thanks! Regards, Polly |
![]() |
| Thread Tools | |
| Display Modes | |
| |