MDX for Subset Ordering by 2 variables
Posted: Mon Oct 11, 2010 6:27 pm
I have a VENDOR dimension that is very flat - just a list of elements and a subtotal.
I want it to ALPHA sort ascending under the total BUT I need one specific element to appear 1st (and of course, it's not first alphabetically).
EXAMPLE:
Parent: TOTAL - VENDORS
Child 1: A
Child 2: B
Child 3: C
Child 4: Make me 1st
Child 5: Z
I want the subset to appear as follows:
Parent: TOTAL -VENDORS
Child 4: Make me 1st
Child 1: A
Child 2: B
Child 3: C
Child 5: Z
As new elements are added dynamically through a TI Process to a data source, they would continue to alpha sort under CHILD 1.
How can I do this?
I want it to ALPHA sort ascending under the total BUT I need one specific element to appear 1st (and of course, it's not first alphabetically).
EXAMPLE:
Parent: TOTAL - VENDORS
Child 1: A
Child 2: B
Child 3: C
Child 4: Make me 1st
Child 5: Z
I want the subset to appear as follows:
Parent: TOTAL -VENDORS
Child 4: Make me 1st
Child 1: A
Child 2: B
Child 3: C
Child 5: Z
As new elements are added dynamically through a TI Process to a data source, they would continue to alpha sort under CHILD 1.
How can I do this?