求SSAS中的计算成员中属性成员的使用

风之子009 2008-11-03 03:14:38
加精
求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
没有显示结果
...全文
476 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
华芸智森 2008-11-04
  • 打赏
  • 举报
回复
[Quote=引用 8 楼 lottery009 的回复:]
想请问一下版主, 为什么中间两位朋友的回帖被删除了
[/Quote]
一个是我的回复,是另一张贴的。写在这里了,所以删了。
另一位在这里发广告。所以删了。
风之子009 2008-11-04
  • 打赏
  • 举报
回复
想请问一下版主, 为什么中间两位朋友的回帖被删除了
风之子009 2008-11-04
  • 打赏
  • 举报
回复
非常多谢MSTOP

你的方法可以
华芸智森 2008-11-03
  • 打赏
  • 举报
回复
这样试试看:

when [DimIntegrate].[Attribute Name].CurrentMember
IS [DimIntegrate].[Attribute Name].[Product1]
and val([DimIntegrate].[Attribute Name].CurrentMember.Properties( "Attribute Order" )) = 701
JBean 2008-11-03
  • 打赏
  • 举报
回复
对不起楼主,看上去我感觉都正常,帮不了忙抱歉.
风之子009 2008-11-03
  • 打赏
  • 举报
回复
Attribute Order 是int类型
JBean 2008-11-03
  • 打赏
  • 举报
回复
看上去没有问题,只能瞎蒙了: 是否Attribute Order非数字型?
另,楼主你给长句子包俩括号呀,会好看点.

7,388

社区成员

发帖
与我相关
我的任务
社区描述
其他数据库开发 数据仓库
社区管理员
  • 数据仓库
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧