![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
From [SalesSummary] WHERE ( [Time].[All Time].[2004] ) |
|
From [Adventure Works] WHERE ( [Date].[Fiscal].[Fiscal Year].&[2004] ) |
#2
| |||
| |||
|
#3
| |||
| |||
|
|
From [Basic] |
#4
| |||
| |||
|
#5
| |||
| |||
|
| With |
#6
| |||
| |||
|
|
Maybe an earlier post by Alan provide a clue, when he observed that "I am using the September CTP (which as a side note seems to have eliminated the need to do order the set before ranking?)". So AS 2005 seems to do an ascending ranking. But in the example MDX query (where there are no duplicate Sales Amount), the 2-parameter version of Rank should work consistently in AS 2005 as well: With Set [Top10] As '{TOPCOUNT([Product].[Product].[Product].members,10,[Measures].[Internet Sales Amount])}' Member [Measures].[Rank] As 'RANK([Product].[Product].CurrentMember,{[Top10]})' Select {[Measures].[Internet Sales Amount],[Measures].[Rank]} On Columns , {[Top10]} On Rows From [Adventure Works] WHERE ( [Date].[Fiscal].[Fiscal Year].&[2004] ) - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
![]() |
| Thread Tools | |
| Display Modes | |
| |