ssas - The 'Rank' dimension contains more than one hierarchy error -
with member [rank] rank ( [all products].[group 2].currentmember ,order ( [all products].[group 2].members ,[measures].[test] ) ) select [rank] on columns ,[all products].[group 2].members on rows [cube];
error: 'rank' dimension contains more 1 hierarchy, therefore hierarchy must explicitly specified. execution complete
the standard way use rank
order set before hitting rank function:
with set [orderedgroup] order ( [all products].[group 2].members ,[measures].[test] ) member [rank] rank ( [all products].[group 2].currentmember ,[orderedgroup] ) select [rank] on columns ,[all products].[group 2].members on rows [cube];
here reference previous post made concerning rank
:
Comments
Post a Comment