Skip to content

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

JUNTARX

On this page (10)

Joins the expression's result for each row into a single text. Accepts a FILTRAR(...) table as the 1st argument.

FieldValue
CategoryContext and filter
TypeAggregation (operates on a set of rows)
Arity1 to 3 arguments
Compiles to SQL (calculated column)No
VersionFormula engine v3.

Aliases#

Canonical name: JUNTARX. Accepted aliases (case-insensitive): concatenatex.

Syntax#

code
JUNTARX(expr; [arg2]; [arg3])

All arguments are expressions.

Returns#

Text (the per-row results joined).

Null handling#

When there is no row in the changed context, it returns blank (never zero) — a blank is more honest than a made-up zero.

Evaluation context#

Iterator — evaluates the expression ROW BY ROW (the bare column takes each row's value) and aggregates the result. Accepts a virtual FILTRAR(...) table as the 1st argument.

Differences from DAX#

  • DAX equivalent: CONCATENATEX
  • Compatibility: DIFFERS from DAX — different semantics, watch out
  • Note: Has no sort argument (CONCATENATEX accepts orderBy). The virtual table in the 1st argument can only be FILTRAR(...).

Examples#

code
JUNTARX(produto; ", ")

Example with values#

Input: products "A", "B", "C".

code
JUNTARX(produto; ", ")  →  "A, B, C"

Expected result: "A, B, C"

Business example#

Comparative measure — share of total, ranking, change versus another period.

Common errors#

With two arguments, the 1st MUST be a FILTRAR(...) table — otherwise you get a guided error.


← Back to the formula index

Related links