是否可以按度量值进行过滤?在我的场景中,我需要通过 [Measures].[Returned Widget Count] (即 1 或 0)将 Widget 数量限制为仅在 Measure = 1 的情况下。例如,如下所示:
Select {
(
[Dim Widget].[Build Site].[The Moon],
[Dim Date].[Build Day].[2012-04-24],
[Measures].[Widget Count]
),
(
[Dim Widget].[Build Site].[The Moon],
[Dim Date].[Build Day].[2012-04-24],
[Measures].[Returned Widget Count]
)
} on 0
from (
Select [Dim Widget].[Build Site] on 0
From [Widgetizer]
Where Filter(
[Dim Widget].[Serial Number].Members,
[Measures].[Returned Widget Count].Value > 0
)
)
查询执行,但它没有过滤我的人口。我知道这一点,因为它返回与以下相同的结果:
Select {
(
[Dim Widget].[Build Site].[The Moon],
[Dim Date].[Build Day].[2012-04-24],
[Measures].[Widget Count]
),
(
[Dim Widget].[Build Site].[The Moon],
[Dim Date].[Build Day].[2012-04-24],
[Measures].[Returned Widget Count]
)
} on 0
from [Widgetizer]
甚至还没有应用过滤器功能的地方。
我如何才能将人口减少到仅在度量是特定值的情况下?