下午好。即使 MDX 中非空,MDX 查询仍返回空值。该查询确实运行并且确实返回了我期望看到的值。试图摆脱所有空行。寻求帮助。谢谢。
WITH
MEMBER [Measures].[Total Open PO and Planned] as
([Measures].[Quantity Open - P]) + ([Measures].[Planned Order Quantity])
MEMBER [Measures].[Open Purchase Orders] as
([Measures].[Quantity Open - P])
MEMBER [Measures].[Forecasted Orders] as
([Measures].[Forecast Quantity])
MEMBER [Measures].[Planned Orders] as
[Measures].[Planned Order Quantity]
SELECT
NON EMPTY
({
[Measures].[Total Open PO and Planned],
[Measures].[Open Purchase Orders],
[Measures].[Forecasted Orders],
[Measures].[Planned Orders]
})
ON COLUMNS,
NON EMPTY
{
[Item Branch].[Business Unit Code].CHILDREN
*
[Items].[Item Number 02].CHILDREN
}
ON ROWS
FROM
(SELECT
(
{[Items].[P1 Flag].&[]}
) ON COLUMNS FROM
[Buyer]
)
我期待非空删除空记录。谢谢
非空不会过滤掉计算的度量。由于您的度量是在查询中定义的,因此它们永远不会被非空子句过滤。尝试使用过滤功能。