Distinct(MDX)

업데이트: 2007년 9월 15일

지정된 집합을 계산하고 집합에서 중복 튜플을 제거하여 결과 집합을 반환합니다.

구문

Distinct(Set_Expression)

인수

  • Set_Expression
    집합을 반환하는 유효한 MDX 식입니다.

주의

Distinct 함수는 지정된 집합에서 중복 튜플을 찾을 경우 중복 튜플의 첫 번째 항목만 유지하고 집합 순서는 그대로 유지합니다.

다음 MDX 쿼리에서는 Distinct 함수의 사용법과 이 함수가 예제 큐브 AdventureWorks에서 검색한 결과를 보여 줍니다.

Select Distinct({[Geography].[Country].&[Australia],

[Geography].[Country].&[France],

[Geography].[Country].&[Canada],

[Geography].[Country].&[Australia],

[Geography].[Country].&[United States],

[Geography].[Country].&[United Kingdom],

[Geography].[Country].&[Canada]}) on 1,

[Measures].[Reseller Sales Amount] on 0

from [Adventure Works]

다음 결과와 같이 집합의 결과 순서는 쿼리의 튜플과 동일합니다. 하지만 중복 튜플은 제거되었습니다.

Reseller SalesAmount

Australia$1,594,335.38

France$4,607,537.94

Canada$14,377,925.60

United States$53,607,801.21

United Kingdom$4,279,008.83

참고 항목

참조

MDX 함수 참조(MDX)

도움말 및 정보

SQL Server 2005 지원 받기

변경 내역

릴리스 내역

2007년 9월 15일

새로운 내용
  • 예를 추가했습니다.

2006년 7월 17일

변경된 내용
  • 자세한 설명을 위해 구문과 인수를 업데이트했습니다.