写成计算成员

0
 您好,,我想请问一个问题:SELECT [Measures].[Claim Count]ON 0 ,
filter([DimClaimSource].[ID].MEMBERS,Instr([DimClaimSource].[ID].CURRENTMEMBER.MEMBERVALUE ,'Medical')=1) on 1
FROM [CombinedClaims]

现在这个语句是正确的,可是我怎么转换成表达式呢,,因为我要把他写成计算成员
已邀请:
2

xpivot - SSAS & Excel &Cube架构师、产品经理 课程地址:http://www.hellobi.com/course/34 2015-03-27 回答

with member FilteredMembers as 
sum(
Filter([Customer].[Country].[Country].allmembers, 
InStr([Customer].[Country].currentmember.membervalue, "an")>0),
[Measures].[Customer Count])

select FilteredMembers on 0
from [Adventure Works]

要回复问题请先登录注册