Skip to content

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

LN

On this page (10)

Natural logarithm.

FieldValue
CategoryMath
TypeScalar (operates value by value)
Arity1 argument (fixed)
Compiles to SQL (calculated column)Yes
VersionFormula engine v3.

Aliases#

Canonical name: LN. Accepted aliases (case-insensitive): (nenhum).

Syntax#

code
LN(expr)

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: LN
  • Compatibility: Compatible with DAX
  • Note: Natural logarithm; requires a number > 0.

Examples#

code
LN(receita)

Example with values#

Input: number 1.

code
LN(1)  →  0

Expected result: 0

Business example#

Normalize financial numbers — round prices, remove the sign from a deviation, compute powers/roots.

Common errors#

LN: número deve ser maior que zero.


← Back to the formula index

Related links