Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

CONCATENATE DAX function not recognized in Custom Column Window

I'm trying to merge the contents of two columns (text) in Transform Data Table with a new Custom Column but Custom Column window doesn't recognize CONCATENATE function and the formula produces error.

 

How could I merge the contents and why some functions are not recognized?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

Microsoft Power BI supports two different languages, M language(in Power Query) and DAX .

CONCATENATE() function is used for DAX not for M.

 

So if you could use the following to get the same effect:

    #"Grouped Rows" = Table.Group( #"Changed Type" , {"Cate"}, {{"Custom", each Text.Combine([Value], "/"), type text}})

11.30.1.2.PNG

 

Table 2 =
ADDCOLUMNS (
    VALUES ( 'Table (2)'[Cate] ),
    "Product",
        CALCULATE (
            CONCATENATEX ( VALUES ( 'Table (2)'[Value] ), 'Table (2)'[Value], "/ " )
        )
)

My final output looks like this:

11.30.1.1.PNG

Here is the pbix file.

 

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please upload some insensitive data samples and expected output.

 

Best Regards,
Eyelyn Qin

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @Anonymous ,

 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.

 

Best Regards,
Eyelyn Qin

Anonymous
Not applicable

Hi @Anonymous ,

Microsoft Power BI supports two different languages, M language(in Power Query) and DAX .

CONCATENATE() function is used for DAX not for M.

 

So if you could use the following to get the same effect:

    #"Grouped Rows" = Table.Group( #"Changed Type" , {"Cate"}, {{"Custom", each Text.Combine([Value], "/"), type text}})

11.30.1.2.PNG

 

Table 2 =
ADDCOLUMNS (
    VALUES ( 'Table (2)'[Cate] ),
    "Product",
        CALCULATE (
            CONCATENATEX ( VALUES ( 'Table (2)'[Value] ), 'Table (2)'[Value], "/ " )
        )
)

My final output looks like this:

11.30.1.1.PNG

Here is the pbix file.

 

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please upload some insensitive data samples and expected output.

 

Best Regards,
Eyelyn Qin

amitchandak
Super User
Super User

@Anonymous ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

I did it with Merge Columns in Toolbar.

amitchandak
Super User
Super User

@Anonymous , Are you trying in power Query M. There you can Text.Combine , it need a list -https://docs.microsoft.com/en-us/powerquery-m/text-combine

 

Or try Like 

New column  = [col1] &" " &[col2]

 

In Dax you have concatenate

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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.