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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Concatenate number column and text column into new column

I am trying to concatenate a number column and a text column into a new column - so for example Column [Year] 2019 will be concatenated with Column [FiscalMonth] Jan to make a new column called CustomNew that contains 2019Jan. Year column is the number and FiscalMonth is the text column.

 

I have tried a number of things but always end up with an error in the new column.

 

I am currently trying Add Column -> Custom Column which produces this Power Query -

= Table.AddColumn(#"Changed Type1", "CustomNew", each Number.ToText[Year] & [FiscalMonth]).

 

I end up getting the error -

Expression.Error: We cannot apply field access to the type Function.
Details:
Value=[Function]
Key=Year

 

Does anyone have any ideas as to why I'm getting this error or any other way of doing this?

 

Many thanks.

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@Anonymous 

 

Please try add brakets for year column.

= Table.AddColumn(#"Changed Type1", "CustomNew", each Number.ToText([Year]) & [FiscalMonth]).

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
v-deddai1-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please try the following M query:

 

= Table.AddColumn(#"Changed Type", "Custom", each Text.Combine({Text.From([Year], "en-US"), [FiscalMonth]}), type text)

 

 

Capture1.PNG

 

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

 

Best Regards,

Dedmon Dai

ryan_mayu
Super User
Super User

@Anonymous 

 

Please try add brakets for year column.

= Table.AddColumn(#"Changed Type1", "CustomNew", each Number.ToText([Year]) & [FiscalMonth]).

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Hi @ryan_mayu that solution worked for me thank you very much.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.