DAX 數學與三角函式 - SIGN 函式



描述

確定數字、計算結果或列中的數字的符號。如果數字為正,函式返回 1;如果數字為零,函式返回 0;如果數字為負,函式返回 -1。

語法

SIGN (<number>) 

引數

序號 引數和描述
1

數字

任何實數,或包含數字的列,或計算為數字的表示式。

返回值

以下值之一 -

  • 1
  • 0
  • -1

示例

= SIGN (55) returns 1. 
= SIGN (-55) returns -1. 
= SIGN (0) returns 0.
dax_functions_mathematical_trigonometric.htm
廣告
© . All rights reserved.