- (否定)(MDX)

執行一個一元運算,回傳數值表達式的負值。

Syntax

  
- Numeric_Expression  

參數

Numeric_Expression
一個有效的多維表達式(MDX)表達式,回傳一個數值。

傳回值

負值,包含指定參數的資料型態。

Examples

以下範例展示了此運算子的使用。

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