I'm new to MDX so bear with me.
I have crossed joined two dimensions so that I can report on Sales & Target (from the sales dimension) with this week and this week last year (from the date dimension) in columns and listed locations in the rows.
Psuedo code..
Select
{[DateDim].[ReportingPeriod].[Week].&[2012]&[20],
[DateDim].[ReportingPeriod].[Week].&[2013]&[20]}
*
{[Measures].[Total Sales],[Measures].[Target]} on Columns,
DrillDownLevel([LocationDim].[LocationName].[All]) on Rows from [MyCube]
How do I sort the results by sales this year? (.. [2013].[20]
)
Thanks