Rank that thing…

Ranking i MDX kan være en spøjs ting at arbejde med.

Her den anden dag sad jeg med problemet at skulle ranke et Crossjoin set hvor jeg kun ville have .children. Det viste sig, at når man rankede, skulle man benytte sig af Extract( [Dimension].Members, [Dimension].DefaultMember ) istedet for [Dimension].Children

I min verden er det en og samme ting… Men åbenbart ikke i Microsofts verden

Eksempel:
SET Set AS 'NonEmptyCrossjoin( [DimensionI].Children, DESCENDANTS( [DimensionII],, LEAVES )'
MEMBER [Measures].[Rank] AS 'Rank( ([DimensionI].CurrentMember, [DimensionII].CurrentMember ), Crossjoin( Extract( [Dimension].Members, [Dimension].DefaultMember ), DESCENDANTS( [DimensionII],, LEAVES ) ) ) )'
SELECT Set ON ...

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.