Series of numbers as TEXT (from; to; step?; separator?) — for card labels, legends, and subtitles.
| Field | Value |
|---|---|
| Category | Text |
| Type | Scalar (operates value by value) |
| Arity | 2 to 4 arguments |
| Compiles to SQL (calculated column) | No |
| Version | Formula engine v3. |
Aliases#
Canonical name: SEQUENCIA. Accepted aliases (case-insensitive): generateseries, serie.
Syntax#
code
SEQUENCIA(expr; arg2; [arg3]; [arg4])All arguments are expressions.
Returns#
Text (the formatted series).
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: GENERATESERIES
- Compatibility: DIFFERS from DAX — different semantics, watch out
- Note: Returns TEXT (a series for label/legend/subtitle), not a TABLE like GENERATESERIES.
Examples#
code
SEQUENCIA(ANO(PRIMEIRA_DATA(dia)); ANO(ULTIMA_DATA(dia)))Example with values#
Input: from 2023 to 2025.
code
SEQUENCIA(2023; 2025) → "2023, 2024, 2025"Expected result: "2023, 2024, 2025"
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.