![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
| SELECT |
#3
| |||
| |||
|
|
Hi Chris, The 2nd argument of Order() is a numeric or string expression by which to order the members of the 1st argument. So I assume that you wanted something like: SELECT [Measures].[Reseller Sales Amount] ON COLUMNS, Order ( Descendants ( [Employee].[Employee Department].[Department Name].&[Sales], [Employee].[Employee Department].[Title], SELF), [Measures].[Reseller Sales Amount], ASC ) ON ROWS FROM [Channel Sales] --------------------------------------------------------- Reseller Sales Amount Vice President of Sales (null) Pacific Sales Manager $172,524.45 European Sales Manager $732,078.44 North American Sales Manager $1,092,123.86 Sales Representative $78,453,870.23 - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
#4
| |||
| |||
|
|
Hi Chris, The 2nd argument of Order() is a numeric or string expression by which to order the members of the 1st argument. So I assume that you wanted something like: SELECT [Measures].[Reseller Sales Amount] ON COLUMNS, Order ( Descendants ( [Employee].[Employee Department].[Department Name].&[Sales], [Employee].[Employee Department].[Title], SELF), [Measures].[Reseller Sales Amount], ASC ) ON ROWS FROM [Channel Sales] --------------------------------------------------------- Reseller Sales Amount Vice President of Sales (null) Pacific Sales Manager $172,524.45 European Sales Manager $732,078.44 North American Sales Manager $1,092,123.86 Sales Representative $78,453,870.23 - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
![]() |
| Thread Tools | |
| Display Modes | |
| |