DrillupMember(MDX)

지정된 두 번째 집합에 있는 멤버의 하위 항목이 아닌 지정된 집합의 멤버를 반환합니다.

구문

  
DrillupMember(Set_Expression1, Set_Expression2)   

인수

Set_Expression1
집합을 반환하는 유효한 MDX(다차원 식) 식입니다.

Set_Expression2
집합을 반환하는 유효한 MDX(다차원 식) 식입니다.

설명

DrillupMember 함수는 첫 번째 집합에 지정된 멤버에 따라 두 번째 집합에 있는 멤버의 하위 항목인 멤버 집합을 반환합니다. 첫 번째 집합은 어떠한 차원도 될 수 있지만 두 번째 집합은 1차원 집합을 포함해야 합니다. 첫 번째 집합의 원래 멤버 간 순서는 유지됩니다. 함수는 두 번째 집합에 있는 멤버의 직계 하위 항목인 첫 번째 집합에 해당 멤버만 포함하여 집합을 생성합니다. 첫 번째 집합에 있는 멤버의 직계 상위 항목이 두 번째 집합에 없으면 이 함수에서 반환된 집합에는 첫 번째 집합의 멤버가 포함됩니다. 두 번째 집합의 상위 멤버 앞에 있는 첫 번째 집합의 하위 항목도 포함됩니다.

첫 번째 집합에는 멤버 대신 튜플이 포함될 수 있습니다. 튜플 드릴다운은 멤버 대신 튜플 집합을 반환하는 OLE DB의 확장 기능입니다.

Important

바로 다음에 자식 또는 하위 항목이 오는 멤버만 드릴업됩니다. 집합의 멤버 순서는 함수의 Drilldown* 및 Drillup* 제품군 모두에 중요합니다. Hierarchize 함수를 사용하여 첫 번째 집합의 멤버를 적절하게 정렬하는 것이 좋습니다.

다음 세 가지 예제는 두 번째 집합을 제외하고 동일합니다. 첫 번째 예제에서 두 번째 집합은 미국입니다. 결과적으로 콜로라도는 결과 집합에서 제외됩니다. 그것은 미국의 후손입니다.

SELECT DrillUpMember (   
  { [Geography].[Geography].[Country].[Canada]   
   ,[Geography].[Geography].[Country].[United States]   
   ,[Geography].[Geography].[State-Province].[Colorado]   
   ,[Geography].[Geography].[State-Province].[Alberta]   
   ,[Geography].[Geography].[State-Province].[Brunswick]    
 }   
 , {[Geography].[Geography].[Country].[United States]}   
 ) ON 0   
FROM [Adventure Works]  

예제 2에서는 멤버 순서의 중요성을 보여 줍니다. DrillupMember는 첫 번째 세트에서 하위 항목이 바로 뒤에 있는 멤버만 드릴업하므로 캐나다 멤버를 드릴업하지 않습니다. 캐나다는 미국과 콜로라도에 의해 하위 항목에서 분리됩니다. 캐나다가 앨버타 바로 위에 있도록 회원의 순서를 변경하면 앨버타와 브런즈윅이 모두 행 집합에서 제외됩니다.

SELECT DrillUpMember (   
 {  [Geography].[Geography].[Country].[Canada]   
   ,[Geography].[Geography].[Country].[United States]   
   ,[Geography].[Geography].[State-Province].[Colorado]   
   ,[Geography].[Geography].[State-Province].[Alberta]   
   ,[Geography].[Geography].[State-Province].[Brunswick]    
 }   
 , {[Geography].[Geography].[Country].[Canada]}   
 )   
ON 0   
FROM [Adventure Works]  

예제 3에서는 Hierarchize사용하여 멤버 순서의 영향을 완화하고 캐나다 멤버를 드릴업하는 방법을 보여 줍니다.

SELECT DrillUpMember (   
 Hierarchize   
  (   
   { [Geography].[Geography].[Country].[Canada]   
    ,[Geography].[Geography].[Country].[United States]   
    ,[Geography].[Geography].[State-Province].[Colorado]   
    ,[Geography].[Geography].[State-Province].[Alberta]   
    ,[Geography].[Geography].[State-Province].[Brunswick]    
   }   
  ), {[Geography].[Geography].[Country].[Canada]}   
 )   
ON 0   
FROM [Adventure Works]  
  

참고 항목

MDX 함수 참조(MDX)