尝试应用具有2维值的过滤器。
SELECT [Measures].[OrdItemCount] ON 0,
{
FILTER
(
[Date].[Date].[Date],
[Date].[Date].[Date].MEMBERVALUE = Format(Now(), "yyyyMMdd"))
)
}.ITEM(0)
ON 1
FROM
[Adventure Works]
答案 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]