Current(MDX)

반복하는 동안 집합에서 현재 튜플을 반환합니다.

구문

Set_Expression.Current 

인수

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

주의

반복 중 각 단계에서 수행되는 튜플은 현재 튜플입니다. Current 함수는 이 튜플을 반환합니다. 이 함수는 집합에 대해 반복하는 동안에만 유효합니다.

집합에서 반복되는 MDX 함수에는 Generate 함수가 포함됩니다.

[!참고]

이 함수는 집합 별칭을 사용하거나 명명된 집합을 정의함으로써 명명된 집합에 대해서만 사용할 수 있습니다.

다음 예에서는 Generate 내에서 Current 함수를 사용하는 방법을 보여 줍니다.

WITH

//Creates a set of tuples consisting of all Calendar Years crossjoined with

//all Product Categories

SET MyTuples AS CROSSJOIN(

[Date].[Calendar Year].[Calendar Year].MEMBERS,

[Product].[Category].[Category].MEMBERS)

//Iterates through each tuple in the set and returns the name of the Calendar

//Year in each tuple

MEMBER MEASURES.CURRENTDEMO AS

GENERATE(MyTuples, MyTuples.CURRENT.ITEM(0).NAME, ", ")

SELECT MEASURES.CURRENTDEMO ON 0

FROM [Adventure Works]

참고 항목

참조

MDX 함수 참조(MDX)