我正在尝试创建一个计算的度量来计算平均值,类似于VS2012 BI中的where子句。
创建MEMEBR CURRENTCUBE。[测量]。[Sem平均值]
AS [Measures]。[SG_Sem] / [Measures]。[Counted_Rows] < -This已经有效
WHERE [Measures] [Kenn] ='BE'< -something like this is missing
THX
答案 0 :(得分:1)
CREATE MEMBER CURRENTCUBE.[Measures].[Sem Average]
AS
(
([Measures].[SG_Sem] / [Measures].[Counted_Rows]) , [Measures][Kenn].&[BE] )
)