AND(MDX)

두 숫자 식에 논리 결합을 수행합니다.

구문

Expression1 AND Expression2

매개 변수

  • Expression1
    숫자 값을 반환하는 유효한 MDX 식입니다.

  • Expression2
    숫자 값을 반환하는 유효한 MDX 식입니다.

반환 값

두 매개 변수가 모두 true로 계산되면 true를 반환하고 그렇지 않으면 false를 반환하는 부울 값입니다.

주의

AND 연산자는 논리 결합을 수행하기 전에 두 식을 모두 부울 값(0은 false, 그외 값은 true)으로 취급합니다. 다음 표에서는 AND 연산자로 논리 결합을 수행하는 방법을 보여 줍니다.

Expression1

Expression2

반환 값

true

true

true

true

false

false

false

true

false

false

false

false

-- This query returns the gross profit margin (GPM)
-- for clothing sales where the GPM is between 20% and 30%.
With Member [Measures].[LowGPM] as
  IIF(
      [Measures].[Gross Profit Margin] <= .3 AND 
      [Measures].[Gross Profit Margin] >= .2,
      [Measures].[Gross Profit Margin],
      null)
SELECT NON EMPTY
    [Sales Territory].[Sales Territory Country].Members ON 0,
    [Product].[Category].[Clothing] ON 1
FROM
    [Adventure Works]
WHERE
    ([Measures].[LowGPM])

참고 항목

참조

MDX 연산자 참조(MDX)