MDX Allow member set only siblings in Roles-Dimension Data

谁说我不能喝 提交于 2020-01-05 17:49:33

问题


Is it possbile to restrict a Role in Dimension Data by allowing him to see only siblings in the parent-child Hierarchy? Example Hierarchy:

EMEA              100

  UK               50
     London        30
     Southampton   20

  France           50
      Paris        10
      Lyon         40

To see only:

  EMEA             100
     UK             50
     France         50


回答1:


I've received the expected result with the following MDX statement

 NONEMPTY(
    descendants(
       [Dim Branch Hierarchies].[Branch Hierarchy]
       ,,leaves
    )
  , (
     [Measures].[GrantedHi]
    ,StrtoMember( 
        "([Dim Users].[Account Name].[Account Name].["+ Username()+ "])" 
     )
    ) 
)


来源:https://stackoverflow.com/questions/32005052/mdx-allow-member-set-only-siblings-in-roles-dimension-data

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!