Skip to content

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

EXTTEXTO

On this page (10)

Part of the text starting at the position (1 = 1st character).

FieldValue
CategoryText
TypeScalar (operates value by value)
Arity3 arguments (fixed)
Compiles to SQL (calculated column)Yes
VersionFormula engine v3.

Aliases#

Canonical name: EXTTEXTO. Accepted aliases (case-insensitive): mid, substr.

Syntax#

code
EXTTEXTO(expr; arg2; arg3)

All arguments are expressions.

Returns#

Text.

Null handling#

Blank becomes empty text ("").

Evaluation context#

Scalar — evaluated on the result of the arguments (in calculated columns, it runs row by row).

Differences from DAX#

  • DAX equivalent: MID
  • Compatibility: Compatible with DAX
  • Note: Part starting at the position (1 = 1st character).

Examples#

code
EXTTEXTO(sku; 3; 4)

Example with values#

Input: "ABCDEF" starting at position 3, 2 characters.

code
EXTTEXTO("ABCDEF"; 3; 2)  →  "CD"

Expected result: "CD"

Business example#

Standardize records and labels — CNPJ, SKU, channel name, report legends.

Common errors#

Typos in a column name, an incompatible type, or an invalid argument become a friendly message (pt-BR) — the engine never silently returns a wrong number.


← Back to the formula index

Related links