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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Expression error: The name 'Concatenate' wasn't recognized

Hi,

I am using the below formulla:

CONCATENATE(MONTH([FIRST_TOUCH_DATE_TIME]),YEAR([FIRST_TOUCH_DATE_TIME]))

 

to get the year and month from a date, there is no syntax error occured , but when I press the OK button I am getting the error as 'CONCATENATE' is not recognized like below:

syntax error.PNG

What should I do now? Please help

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @Anonymous

    CONCATENATE as DAX Function, and in the query editor, it needs to use M language. 

When you're modeling, you can use Dax Function to add a calculate column or calculate measure, but in the query editor,

you need to use M language.

and for your requirement in the query editor, you can use & as below

2.PNG

 

Best Regards,

Lin

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-lili6-msft
Community Support
Community Support

hi, @Anonymous

    CONCATENATE as DAX Function, and in the query editor, it needs to use M language. 

When you're modeling, you can use Dax Function to add a calculate column or calculate measure, but in the query editor,

you need to use M language.

and for your requirement in the query editor, you can use & as below

2.PNG

 

Best Regards,

Lin

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi,

When I am doing calculation at query editor it gives me error, but when I doing this at dashboard by right clicking on the filed it works fine for me.

 

Please give me advise why I am getting error at query editor only?

 

Thanks

Sandip

Anonymous
Not applicable

Hi,

When I am doing calculation at query editor it gives me error, but when I doing this at dashboard by right clicking on the filed it works fine for me.

 

Please give me advise why I am getting error at query editor only?

 

Thanks

Sandip

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors