2016-09-21 13 views
0

このMDXクエリを翻訳して、すべての合計レコードの数を取得するにはどうすればよいですか?ウェブページでページングをしていますか?MDX行数とページ番号

SELECT { 
      [Measures].[Invoice Price], 
      [Measures].[Quantity], 
      [Measures].[Verified Total] 
     } 
      on columns, SubSet(
          NONEMPTY(
          (
          [Distributor].[Distributor].[Distributor].ALLMEMBERS * 
          [Product].[PA Description].[PA Description] * 
          [Time].[Month Name of Year].[Month Name of Year].ALLMEMBERS * 
          [Time].[Month Number of Year].[Month Number of Year].ALLMEMBERS 
          ), 
          { 
           [Measures].[Invoice Price], 
           [Measures].[Quantity], 
           [Measures].[Verified Total] 

           } 
          ) 
          ,0 
          ,5 
       ) 
       DIMENSION PROPERTIES MEMBER_UNIQUE_NAME on Rows from [Reporting] 

答えて

0

はたぶん、このようなものは:確かに、それはちょうど5

WITH MEMBER [Measures].[RowCount] AS 
    SubSet(
    NONEMPTY(
     (
     [Distributor].[Distributor].[Distributor].ALLMEMBERS * 
     [Product].[PA Description].[PA Description] * 
     [Time].[Month Name of Year].[Month Name of Year].ALLMEMBERS * 
     [Time].[Month Number of Year].[Month Number of Year].ALLMEMBERS 
     ), 
     { 
     [Measures].[Invoice Price], 
     [Measures].[Quantity], 
     [Measures].[Verified Total] 
     } 
    ) 
    ,0 
    ,5 
    ).COUNT 
SELECT { 
     [Measures].[Invoice Price], 
     [Measures].[Quantity], 
     [Measures].[Verified Total], 
     [Measures].[RowCount] 
     } on 0 
    , SubSet(
    NONEMPTY(
     (
     [Distributor].[Distributor].[Distributor].ALLMEMBERS * 
     [Product].[PA Description].[PA Description] * 
     [Time].[Month Name of Year].[Month Name of Year].ALLMEMBERS * 
     [Time].[Month Number of Year].[Month Number of Year].ALLMEMBERS 
     ), 
     { 
     [Measures].[Invoice Price], 
     [Measures].[Quantity], 
     [Measures].[Verified Total] 
     } 
    ) 
    ,0 
    ,5 
    ) 
    ON 1 
FROM [Reporting]; 

ですが...!

+0

実行中 クエリを実行中... 入力の最後に達しました。 実行完了 出力なし –