![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Each axis of the MDX query is evaluated independently, I think, so the specific tuple on the column axis in your first query (Year 2003) does not establish a context for computing the row axis tuple set for [SalesPerson]. What do you want the row axis set of [SalesPerson] members to be ordered by, when you have multiple [Year] members on the columns axis? If you need the order for each [Year] individually, then you can cross-join the [Time] and [SalesPerson] dimensions, creating a list for each year: Select {[Measures].[Value]} on Columns, Generate([Time_YM].[Year].Members, CrossJoin({[Time_YM].CurrentMember}, ORDER([SalesPerson].[SalesPerson].Members, ([Measures].[Value],[Time_YM].CurrentMember), BDESC))) on Rows From Sales - Deepak *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#2
| |||
| |||
|
#3
| |||
| |||
|
|
With reference to ths sample results you showed, there is a basic question: what if Henry Miller has the highest Sales in 2001, but Cathy Owens tops in 2002 and so on? How should the results table look then? The sample results seem to show that the Salespeople are ordered the same each year. - Deepak *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#4
| |||
| |||
|
| SELECT {[Time_YM].[All Time_YM].Children} ON COLUMNS, ORDER |
#5
| |||
| |||
|
|
Then how about an MDX query something like this: SELECT {[Time_YM].[All Time_YM].Children} ON COLUMNS, ORDER ([SalesPerson].[SalesPerson].members, Sum(Axis(0),[Measures].[Value]), BDESC) ON ROWS FROM Sales - Deepak *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
![]() |
| Thread Tools | |
| Display Modes | |
| |