Number of characters.
| Field | Value |
|---|---|
| Category | Text |
| Type | Scalar (operates value by value) |
| Arity | 1 argument (fixed) |
| Compiles to SQL (calculated column) | Yes |
| Version | Formula engine v3. |
Aliases#
Canonical name: NUMCARACT. Accepted aliases (case-insensitive): len, length.
Syntax#
code
NUMCARACT(expr)All arguments are expressions.
Returns#
Number (number of characters).
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: LEN
- Compatibility: Compatible with DAX
- Note: Number of characters.
Examples#
code
NUMCARACT(descricao)Example with values#
Input: "ingestia".
code
NUMCARACT("ingestia") → 8Expected result: 8
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.