Logarithm in the given base (default 10).
| Field | Value |
|---|---|
| Category | Math |
| Type | Scalar (operates value by value) |
| Arity | 1 to 2 arguments |
| Compiles to SQL (calculated column) | Yes |
| Version | Formula engine v3. |
Aliases#
Canonical name: LOG. Accepted aliases (case-insensitive): (nenhum).
Syntax#
code
LOG(expr; [arg2])All arguments are expressions.
Returns#
Number.
Null handling#
Text that is not a number, or a blank value in a calculation, becomes a friendly error (pt-BR) — never a silent zero.
Evaluation context#
Scalar — evaluated on the result of the arguments (in calculated columns, it runs row by row).
Differences from DAX#
- DAX equivalent: LOG
- Compatibility: Compatible with DAX
- Note: Default base 10, same as LOG.
Examples#
code
LOG(1000)Example with values#
Input: number 1000 (base 10).
code
LOG(1000) → 3Expected result: 3
Business example#
Normalize financial numbers — round prices, remove the sign from a deviation, compute powers/roots.
Common errors#
LOG: número deve ser maior que zero · LOG: base inválida.