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:

apply rank function set according alphabetical order


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -