- (負) (MDX)
執行一元運算,傳回數值運算式的負值。
語法
- Numeric_Expression
參數
Numeric_Expression
傳回數值的有效多維度運算式 (MDX) 運算式。
傳回值
具有指定參數之資料類型的負值。
範例
以下範例示範此運算子的用法。
-- 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]}