CONCATENATE DAX Function (Text)

Joins two text strings into one text string.

Syntax

CONCATENATE ( <Text1>, <Text2> )
Parameter Attributes Description
Text1

The first text string to be joined into a single text string. Strings can include text or numbers.

Text2

The second text string to be joined into a single text string. Strings can include text or numbers.

Return values

Scalar A single string value.

The concatenated string.

Remarks

If you need to concatenate multiple columns, you can create a series of calculations or, better, use the concatenation operator (&) to join all of them in a simpler expression.

» 1 related article
» 1 related function

Examples

--  CONCATENATE concatenates two strings.
--  It is an alternative to the more commonly used & operator
--  that also allows to concatenate multiple expressions.
EVALUATE
ADDCOLUMNS (
    SUMMARIZE ( 
        TOPN ( 5, Customer ), 
        Customer[Customer Code], 
        Customer[Customer Name] 
    ),
    "Name and Code 1", 
        CONCATENATE ( 
            Customer[Customer Name], 
            Customer[Customer Code] 
        ),
    "Name and Code 2", 
        Customer[Customer Name] & Customer[Customer Code]
)
Customer Code Customer Name Name and Code 1 Name and Code 2
11024 Xie, Russell Xie, Russell11024 Xie, Russell11024
11036 Russell, Jennifer Russell, Jennifer11036 Russell, Jennifer11036
11041 Carter, Amanda Carter, Amanda11041 Carter, Amanda11041
11043 Simmons, Nathan Simmons, Nathan11043 Simmons, Nathan11043
11928 Morris, Isabella Morris, Isabella11928 Morris, Isabella11928

Related articles

Learn more about CONCATENATE in the following articles:

Related functions

Other related functions are:

Last update: Jul 24, 2021   » Contribute   » Show contributors

Contributors: Alberto Ferrari, Marco Russo

Microsoft documentation: https://docs.microsoft.com/en-us/dax/concatenate-function-dax

2018-2021 © SQLBI. All rights are reserved. Information coming from Microsoft documentation is property of Microsoft Corp. » Contact us   » Privacy Policy & Cookies

Context Transition

This function performs a Context Transition if called in a Row Context. Click to read more.

Row Context

This expression is executed in a Row Context. Click to read more.

Iterator

Not recommended

The use of this function is not recommended. See Remarks and Related functions for alternatives.

Not recommended

The use of this parameter is not recommended.

Deprecated

This function is deprecated. Jump to the Alternatives section to see the function to use.

Deprecated

This parameter is deprecated and its use is not recommended.

DirectQuery compatibility

Limitations are placed on DAX expressions allowed in measures and calculated columns.
The state below shows the DirectQuery compatibility of the DAX function.

Contribute

Want to improve the content of CONCATENATE? Did you find any issue?
Please, report it us! All submissions will be evaluated for possible updates of the content.


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.