显示所有国家/地区除外

时间:2013-11-26 12:07:36

标签: ssas mdx windows-server-2008-r2

我想显示除美国以外的所有国家/地区,我应该如何在MDX代码中写入where语句?

另一个例子是显示除2006年以外的所有年份。

enter image description here

enter image description here

2 个答案:

答案 0 :(得分:1)

除此之外你可以使用。

除美国以外的所有国家/地区:

 {Except([Customer].[Customer Geography].[Country].members,
     [Customer].[Customer Geography].[Country].&[United States])} 

答案 1 :(得分:0)

或更短的版本:

WHERE
   -{[Customer].[Customer Geography].[Country].&[United States]}