Closed mysticfall closed 11 years ago
Removing the '(All)' level of the 'Product' hierarchy results in changing order of hierarchies in the row axis.
SELECT {[Measures].[Unit Sales]} ON COLUMNS, Union(Union({([Product].[All Products], [Gender].[All Gender])}, Union(Union(CrossJoin({[Product].[Food]}, {[Gender].[All Gender]}), CrossJoin({[Product].[Food]}, {[Gender].[F]})), CrossJoin({[Product].[Food]}, {[Gender].[M]}))), Union(Union(CrossJoin({[Product].[Non-Consumable]}, {[Gender].[All Gender]}), CrossJoin({[Product].[Non-Consumable]}, {[Gender].[F]})), CrossJoin({[Product].[Non-Consumable]}, {[Gender].[M]}))) ON ROWS FROM [Sales]
It's caused by the fact that PlaceLevelsOnAxes.removeMember() relies upon PlaceMembersOnAxes.findVisibleMembers(Axis) which returns a list that only includes each member only once.
Removing the '(All)' level of the 'Product' hierarchy results in changing order of hierarchies in the row axis.