![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
| SELECT |
|
Hi All, I'm having endless trouble displaying a resultset that is ordered as Level 1 ASC, Level 2 DESC... The data I am trying to sort for e.g. looks as follows... [Province] [Category] [Measures].[Sales] eastern cape A 125 eastern cape B 184 eastern cape C 1092 eastern cape D 12 gauteng A 144 gauteng B 1234 gauteng C 567 gauteng D 5 mpumalanga A 2345 mpumalanga B 1234 mpumalanga C 5676 mpumalanga D 665 My order clause should perform in some what the same way as shown in the SQL statement below: ... SELECT STATEMENT GROUP BY [PROVINCE] ORDER BY [Province] ASC, [Sales] DESC And the desired results should look as follows for e.g.: [Province] [Category] [Measures].[Sales] eastern cape C 1092 eastern cape B 184 eastern cape A 125 eastern cape D 12 gauteng B 1234 gauteng C 567 gauteng A 144 gauteng D 5 mpumalanga C 5676 mpumalanga A 2345 mpumalanga B 1234 mpumalanga D 665 I have tried various combinations of the ORDER clause in MDX to return these desired results, from nested ORDER's to playing with BASC, BDESC and ASC, DESC respectively, but still can't produce the desired result. I cannot manage to group on [Province] in ASC order properly, and when |
#3
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |