0

为什么 where 子句过滤器适用于 [All subcategoty] 成员而不适用于 [All_Category] ​​成员?

with member [All_Category] as
    ([Product].[Category].[All Products],[Measures].[Reseller Sales Amount])
member [All_SubCategory] as
    ([Product].[Subcategory].[All Products],[Measures].[Reseller Sales Amount])
select 
    {[All_Category],
    [All_SubCategory],
    [Measures].[Reseller Sales Amount]} on 0
from [Adventure Works]
where [Product].[Category].&[4]

结果:

All_Categry     All_SubCategry      Reseller Sales Amount

$80,450,596.98  $571,297.93     $571,297.93
4

1 回答 1

0

因为[All_Category]改变了当前类别的表达。

我觉得[Product].[Category].[All Products][Product].[Subcategory].[All Products]不属于同一个等级

于 2012-07-05T19:55:54.377 回答