1

我收到错误消息:查询 (9, 7) 解析字符串 [Measures].[Total Earnings] 时,在多维数据集中找不到“[Total Earnings]”成员。

- 很常见,但我只是看不到查询的位置。希望你们中的一个人会发现它,或者有更好的方法这是我所拥有的:

  with
     member measures.[Total all Earnings] as [Total Earnings]
      (measures.[Total GS Earned]) + (measures.[Total DSE Earned]) + (measures. [Total Shares Earned])
   set [Top 10 Interstate Earnings] as
    topcount 
    (
      {Stores.[Interstate]. [Interstate].members},
       10,
       (Measures.[Total Earnings], [Time].[C Year].[2011])
     )
    select
    {([Measures].[Total Earnings])} on columns,
      {[Top 10 Interstate Earnings]} on rows
       from LoyaltyMeasurements
       Where (Time.[C Year].[2012]);
4

1 回答 1

1

我是个笨蛋……没关系。粘贴之前我没看到!

计算成员的第一行应如下所示:

  with
     member measures.[Total Earnings] as 
于 2012-12-17T18:33:28.203 回答