Asked By rupnicegu
17-Nov-09 03:35 AM
SELECT NON EMPTY {TopCount({Crossjoin({[Measures].[Average Sales
Amount]},{[Date].[Fiscal].[(All)].AllMembers})},20,[Measures].[Average
Sales Amount])} ON COLUMNS,
NON EMPTY {hierarchize(TopCount({[Geography].[Geography].
[(All)].AllMembers},20,[Measures].[Average Sales Amount]))} ON ROWS
FROM "Adventure Works"
WHERE ([Product].[Color].&[Black],[Product].[Color].&[Red])
Executing the query ...
The 'Color' hierarchy appears more than once in the tuple.
Execution complete
The issue is with using more than once slices from same dimension in
where clause e.g. ([Product].[Color].&[Black],[Product].[Color].&
[Red])
I have to use more than one slices from same dimension. But the MDX is
failing with error, please suggest how to acheive this?
Best Regards,
Rupesh