Value.Compare
This topic applies to the Power Query Formula Language which can be used with Power Query and Power BI Desktop to build queries that mashup data. See the list of function categories.
Returns 1, 0, or -1 based on value1 being greater than, equal to, or less than the value2. An optional comparer function can be provided.
Value.Compare(value1 as any, value2 as any, optional precision as nullable number) as
| Argument | Description |
|---|---|
| value1 | The left value to compare. |
| value2 | The right value to compare. |
| optional precision | Precision of comparison. |
The built-in arithmetic operators (+, -, *, /) use Double Precision. The following library functions can be used to request these operations using a specific precision model.
Show: