我们可以在 where 条件下对度量应用过滤器吗?
Can we apply filter on measures in where condition?
enter image description here
select {[Measures].Allmembers} on columns,[Dim Customer].Allmembers on Rows from [Rightdata Db] where [Measures].[Quantity].&[43]
当我执行上述查询时,出现以下异常:
Query (1, 97) The '&[43]' member was not found in the cube when the
string, [Measures].[Quantity].&[43], was parsed.
为什么我无法使用 where 条件对度量应用过滤器?
您不要以这种方式过滤 Measure。看看下面的示例
select {[Measures].[Internet Sales Amount],[Measures].[Internet Order Quantity]} on columns,
{
filter([Product].[Subcategory].[Subcategory],[Measures].[Internet Sales Amount]>10000)
}
on rows
from
[Adventure Works]
enter image description here
select {[Measures].Allmembers} on columns,[Dim Customer].Allmembers on Rows from [Rightdata Db] where [Measures].[Quantity].&[43]
当我执行上述查询时,出现以下异常:
Query (1, 97) The '&[43]' member was not found in the cube when the string, [Measures].[Quantity].&[43], was parsed.
为什么我无法使用 where 条件对度量应用过滤器?
您不要以这种方式过滤 Measure。看看下面的示例
select {[Measures].[Internet Sales Amount],[Measures].[Internet Order Quantity]} on columns,
{
filter([Product].[Subcategory].[Subcategory],[Measures].[Internet Sales Amount]>10000)
}
on rows
from
[Adventure Works]