Aracılığıyla paylaş


VE (MDX)

Mantıksal birlikte iki sayısal ifadelerini gerçekleştirir.

Sözdizimi

Expression1 AND Expression2

Parametreler

  • Expression1
    Sayısal bir değer döndürür, geçerli bir çok boyutlu ifadeleri (mdx) ifade.

  • Expression2
    Sayısal bir değer döndürür, geçerli bir mdx ifade.

Dönüş Değeri

Her iki parametre için değerlendirmek doğru döndüren Boole true; Aksi takdirde, false.

Açıklamalar

The AND operator treats both expressions as Boolean values (zero, 0, as false; otherwise, true) before the operator performs the logical conjunction.Aşağıdaki tablo gösterir nasıl AND işleç gerçekleştirir mantıksal birlikte.

Expression1

Expression2

Dönüş Değeri

true

true

true

true

false

false

false

true

false

false

false

false

Örnek

-- 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])

Ayrıca bkz.

Başvuru