- (Negatywne) (MDX)

Wykonuje operację unarną, która zwraca wartość ujemną wyrażenia numerycznego.

Syntax

  
- Numeric_Expression  

Parametry

Numeric_Expression
Poprawne wyrażenie z wyrażeń wielowymiarowych (MDX), które zwraca wartość liczbową.

Wartość zwracana

Wartość ujemna, która ma typ danych określonego parametru.

Examples

Poniższy przykład demonstruje użycie tego operatora.

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