具有2维的过滤器的MDX查询帮助

时间:2014-11-26 20:59:50

标签: mdx

尝试应用具有2维值的过滤器。

SELECT [Measures].[OrdItemCount] ON 0,
{
FILTER
(
[Date].[Date].[Date],
[Date].[Date].[Date].MEMBERVALUE = Format(Now(), "yyyyMMdd"))
)
}.ITEM(0)
ON 1
FROM
[Adventure Works]

1 个答案:

答案 0 :(得分:0)

我假设您的要求是今天获得OrdItemCount。如果是,请使用以下查询:

with member [Measures].now as
now(), format_string = "yyyymmdd"

SELECT [Measures].OrdItemCount ON 0,
{FILTER([Date].[Date].[Date], [Date].[Date].MEMBERVALUE = [Measures].now)}.ITEM(0) on 1
from [Adventure Works]