【问题标题】:MDX Calculated member filter by dimension attributes按维度属性的 MDX 计算成员筛选器
【发布时间】:2016-01-29 10:10:57
【问题描述】:

我想在我的 SSAS Cube 中创建一个计算并按多个维度过滤度量。

在一维上使用过滤器,它的工作原理如下:

(
    [Employee categorie].[description].&[local management], 
    [Employee categorie].[description].&[topmanagement], 
    [Measures].[Count]
)

但是如何在第二个维度上包含过滤器?

[retirement].[description].&[partial early retirement]

这是功能背景: 我想从总人数中只列出部分提前退休的经理。 这只是我必须解决的几项任务中的一个示例。

【问题讨论】:

  • 第一个 sn-p 中的元组真的有效吗? - 对我来说看起来不是有效的 mdx

标签: ssas mdx dimensions


【解决方案1】:

在我看来这不是一个有效的元组,因为其中有两个相同层次结构的成员:

(
    [Employee categorie].[description].&[local management], 
    [Employee categorie].[description].&[topmanagement], 
    [Measures].[Count]
)

没关系:

(
    [Employee categorie].[description].&[local management], 
    [retirement].[description].&[partial early retirement], 
    [Measures].[Count]
)

您可以像这样添加两个具有相同维度的元组:

(
    [Employee categorie].[description].&[local management], 
    [retirement].[description].&[partial early retirement], 
    [Measures].[Count]
)
 +
(
    [Employee categorie].[description].&[topmanagement], 
    [retirement].[description].&[partial early retirement], 
    [Measures].[Count]
)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-03-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-03-17
    • 1970-01-01
    • 2015-02-17
    • 1970-01-01
    相关资源
    最近更新 更多