当前位置: 代码迷 >> 数据仓库 >> 求SSAS中的计算成员中属性成员的使用解决方案
  详细解决方案

求SSAS中的计算成员中属性成员的使用解决方案

热度:191   发布时间:2016-05-05 16:13:10.0
求SSAS中的计算成员中属性成员的使用
求SSAS中的计算成员中属性成员的使用?
  <img src="D:\kamus\work\CGFE\DimIntegrate.bmp" alt="{1}" />  

如果只根据DimIntegrate维度的[Attribute Name]属性值是可以判断是可以显示正常的
但是加上[Attribute Name]的属性成员的值判断就不行了,如下面

DimIntegrate 为一个维度,[Attribute Name]为其一属性, Attribute Order 为[Attribute Name]的属性成员
when [DimIntegrate].[Attribute Name].CurrentMember
IS [DimIntegrate].[Attribute Name].[Product1]
  then 12
显示 12

  when [DimIntegrate].[Attribute Name].CurrentMember
IS [DimIntegrate].[Attribute Name].[Product1]
  then [DimIntegrate].[Attribute Name].CurrentMember.Properties( "Attribute Order" ) 
显示结果为 701

但是
when [DimIntegrate].[Attribute Name].CurrentMember
IS [DimIntegrate].[Attribute Name].[Product1]
and [DimIntegrate].[Attribute Name].CurrentMember.Properties( "Attribute Order" ) = 701
  没有显示结果

------解决方案--------------------
看上去没有问题,只能瞎蒙了: 是否Attribute Order非数字型?
另,楼主你给长句子包俩括号呀,会好看点.
------解决方案--------------------
对不起楼主,看上去我感觉都正常,帮不了忙抱歉.
------解决方案--------------------
这样试试看:

when [DimIntegrate].[Attribute Name].CurrentMember 
IS [DimIntegrate].[Attribute Name].[Product1] 
and val([DimIntegrate].[Attribute Name].CurrentMember.Properties( "Attribute Order" )) = 701
  相关解决方案