MDX 即使非空也返回空值

问题描述 投票:0回答:1

下午好。即使 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]

)

在此输入图片描述

我期待非空删除空记录。谢谢

mdx mdx-query
1个回答
0
投票

非空不会过滤掉计算的度量。由于您的度量是在查询中定义的,因此它们永远不会被非空子句过滤。尝试使用过滤功能。

© www.soinside.com 2019 - 2024. All rights reserved.