执行一个一元运算,返回数值表达式的负值。
Syntax
- 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]}