OpenBI Docs Buy

CONCATENATE

Two texts joined into one (the & operator).

Group: Text. Compatible with DAX.

Syntax

CONCATENATE ( <text1>, <text2> )
ParameterTypeDescription
text1TextThe text that comes first; a number or a date becomes text.
text2TextThe text put after it.

Returns

Text. The two texts as one.

Remarks

  • It takes exactly two arguments; a third is an error. To join more, nest the calls or use the & operator, which does the same and joins any number: "Bergen" & " " & "plant".
  • A blank counts as empty text. Only when both are blank is the result BLANK.
  • A number is written in the model's culture: 1.5 in an English model, 1,5 in a Norwegian one. Use FORMAT to choose how it looks.
  • To join the values of many rows, use CONCATENATEX.

Examples

Two texts

EVALUATE
ROW ( "Joined", CONCATENATE ( "Pils", " 0.5 l" ) )
Joined
Pils 0.5 l

Three texts

Nested, or with the & operator: the same text.

EVALUATE
ROW (
    "Nested", CONCATENATE ( "Bergen", CONCATENATE ( " ", "plant" ) ),
    "With &", "Bergen" & " " & "plant"
)
NestedWith &
Bergen plantBergen plant

Blanks

EVALUATE
ROW (
    "Both blank", CONCATENATE ( BLANK (), BLANK () ),
    "One blank", CONCATENATE ( "x", BLANK () )
)
Both blankOne blank
(blank)x

CONCATENATEX, COMBINEVALUES, FORMAT, REPT.

Last updated · OpenBI Studio 0.3.74