Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/entity-framework/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
基于父子层次结构的SSAS动态安全性_Ssas_Mdx - Fatal编程技术网

基于父子层次结构的SSAS动态安全性

基于父子层次结构的SSAS动态安全性,ssas,mdx,Ssas,Mdx,我使用以下MDX查询在父子层次结构上的动态安全角色中定义允许的成员集: Generate( NonEmpty ( [Business Unit].[Business Unit Key].[Business Unit Key].members, ( [Measures].[AD Account Business Unit Count], StrToMember("[AD Account].[AD Account

我使用以下MDX查询在父子层次结构上的动态安全角色中定义允许的成员集:

Generate(
    NonEmpty (
        [Business Unit].[Business Unit Key].[Business Unit Key].members,
        (
            [Measures].[AD Account Business Unit Count],
            StrToMember("[AD Account].[AD Account Name].["+Username()+"]")
        )
    ), {
        LinkMember (
            [Business Unit].[Business Unit Key].CurrentMember,
            [Business Unit].[Business Units]
        )
    }
)
当我在SQL中运行MDX查询时,它会按预期返回,当我查看角色中的“基本”选项卡时,会自动选择层次结构的正确属性。。。一切都好


但是,当我在多维数据集中处理和查看此层次结构时,我仍然可以看到该层次结构的所有属性,就好像动态安全角色根本不起作用一样。

能否尝试将相同的代码放置在默认成员中,即安全级别为允许成员和默认成员的动态安全性中。请让我知道解决方案

证明浏览器只是出于某种原因出现了问题,例如,如果我处理多维数据集并通过Excel连接,那么一切都会正常工作