有关多维数据集的MDX成员

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

我尝试运行以下查询,但出现错误

解析器:由于不确定性,无法解析语句方言。

 WITH MEMBER [Measures].[Test] AS
    SUM({[Item Dimension].[DivCode]},{[Item Dimension].[ItemCode].Allmembers},[Measures].[Stock Qty],[Measures].[Sales Qty])

    SELECT 
        {[Item Dimension].[DivCode]},{[Item Dimension].[ItemCode].Allmembers} ON ROWS
        ,[Measures].[Stock Qty],[Measures].[Sales Qty] ON COLUMNS
 FROM dbCube

有帮助吗?

ssas mdx
1个回答
1
投票
WITH MEMBER [Measures].[Test] AS SUM( ([Item Dimension].[DivCode],{[Item Dimension].[ItemCode].Allmembers), [Measures].[Stock Qty],[Measures].[Sales Qty]) SELECT ([Item Dimension].[DivCode],[Item Dimension].[ItemCode].Allmembers) ON ROWS, {[Measures].[Stock Qty],[Measures].[Sales Qty]} ON COLUMNS FROM dbCube
© www.soinside.com 2019 - 2024. All rights reserved.