Condividi tramite


- (negativo) (MDX)

Esegue un'operazione unaria che restituisce l'opposto del valore di un'espressione numerica.

Sintassi

- Numeric_Expression

Parametri

  • Numeric_Expression
    Espressione MDX (Multidimensional Expression) valida che restituisce un valore numerico.

Valore restituito

Valore negativo con tipo di dati del parametro specificato.

Esempi

Nell'esempio seguente viene illustrato l'utilizzo di questo operatore.

-- This member creates a negative version of the
-- Reseller Freight Cost.
WITH MEMBER 
   Measures.[Resell Cost as Negative] 
   AS -Measures.[Reseller Freight Cost]
SELECT 
   [Date].[Calendar Month of Year].Children ON COLUMNS,
   [Product].[Product Categories].Children ON ROWS
FROM
    [Adventure Works]
WHERE
    {[Measures].[Resell Cost as Negative]}