仅过滤库存数量> 0 MDX

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

我具有下面的MDX,并且我尝试使库存数量大于0

SELECT
    NON EMPTY
        {(

            ,[Item Dimension].[Variantion]
        )} ON ROWS,
        {   
            [Measures].[Stock Qty]
            ,[Measures].[Sales Qty]
        } ON COLUMNS

FROM db

我尝试Filter([Measures].[Stock Qty],[Measures].[Stock Qty]>0),但不起作用。蚂蚁建议?

sql-server mdx
1个回答
0
投票
您正在尝试过滤列,但是应该过滤行,所以类似:

SELECT NON EMPTY Filter([Item Dimension].[Variantion].members,[Measures].[Stock Qty] > 0) ON ROWS, { [Measures].[Stock Qty] ,[Measures].[Sales Qty] } ON COLUMNS FROM db

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