Skip to content

Automatic translation — the Portuguese version is the reference. View in Portuguese

LOG

On this page (10)

Logarithm in the given base (default 10).

FieldValue
CategoryMath
TypeScalar (operates value by value)
Arity1 to 2 arguments
Compiles to SQL (calculated column)Yes
VersionFormula 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)  →  3

Expected 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.


← Back to the formula index

Related links