SSAS使用where子句(MDX)计算度量

时间:2013-05-25 20:34:07

标签: ssas mdx olap business-intelligence cube

我正在尝试创建一个计算的度量来计算平均值,类似于VS2012 BI中的where子句。

创建MEMEBR CURRENTCUBE。[测量]。[Sem平均值]

AS [Measures]。[SG_Sem] / [Measures]。[Counted_Rows] < -This已经有效

WHERE [Measures] [Kenn] ='BE'< -something like this is missing

THX

1 个答案:

答案 0 :(得分:1)

CREATE MEMBER CURRENTCUBE.[Measures].[Sem Average]

AS 
  ( 
     ([Measures].[SG_Sem] / [Measures].[Counted_Rows]) , [Measures][Kenn].&[BE] )
  )