![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
from RPT2X |
|
I have what I thought would be a simple query, which is attached below: select {[Measures].[No of Clients], [Measures].[Cash], [Measures].[Bonds], [Measures].[Mutual Funds], [Measures].[Total Assets], [Measures].[Total Liabilities]} on columns, non empty ({[Primary SalesRep].[primary Sales Rep].members}) on rows from RPT2X where ([Time].[Apr 2003], [Company].[New York] ) I need to be able to sort on the [Measures].[Total Assets] column, and nothing else. I can see how to do it if I want to sort on everything in all columns, but I just need one column sorted. Does anyone have a simple answer to this? Thanks. |
#3
| |||
| |||
|
|
Hi Duane, You need to use the ORDER() MDX function. Something like non empty (ODER({[Primary SalesRep].[primary Sales Rep].members}, [Measure].[Total Assets], DESC)) on rows from RPT2X Sean |
#4
| |||
| |||
|
|
Hi Sean - Thanks One question - my MDX is kicking out the [Total Assets]. Since I specify [Total Assets] in my columns, does it prevent me from using it in an order statement on the rows? "Sean Boon [MS]" <seanboon (AT) online (DOT) microsoft.com> wrote in news:OkGdbBjSDHA.1868 (AT) TK2MSFTNGP11 (DOT) phx.gbl: Hi Duane, You need to use the ORDER() MDX function. Something like non empty (ODER({[Primary SalesRep].[primary Sales Rep].members}, [Measure].[Total Assets], DESC)) on rows from RPT2X Sean |
![]() |
| Thread Tools | |
| Display Modes | |
| |