2016-09-21 1 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

실행할 때 쿼리를 실행하는 중 ... 입력이 끝났습니다. 실행 완료 출력 없음 –