SIGN

Updated on

SIGN is a DAX function that returns the sign of a number: 1 if positive, 0 if zero, and -1 if negative.

Syntax

SIGN( Number )
Argument Properties Description
Number Any real number.

Return Values

A whole number. The possible Return values are 1, 0, and -1.

Return value Description
1 The number is positive
0 The number is zero
-1 The number is negative

Example

The following formula returns the sign of the result of the expression that calculates sale price minus cost.

= SIGN( ([Sale Price] - [Cost]) )

Contribute » | Contributors: Rick de Groot
Microsoft documentation: https://learn.microsoft.com/en-us/dax/sign-function-dax

2023-2024 © BI Gorilla. All rights are reserved. Information from Microsoft docs is property of Microsoft Corp. | Privacy Policy