// RANK([Hierarchy].CurrentMember,
// [OrderedSet])
// {HEAD([OrderedSet], 10)} ON 1
MdxValueExpression rankingMeasure =
new Rank(
orderedSetToRank.getMembersHierarchy().getCurrentMember(),
// orderedSetToRank.getName())
orderedSetToRank)
.getReturn();