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 a numeric column with text power query

I want to make a new column in power query, and want to contanate a numeric column with extra text. I get an error when I try:

 

= Table.AddColumn(#"Added Custom1", "Custom.1", each Text.Combine({"Status", [ActivityID]}," " ))

 

or

 

= Table.AddColumn(#"Added Custom1", "Custom.1", each Text.Combine({"Status", Text.From[ActivityID]}," " ))

 

or

 

= Table.AddColumn(#"Added Custom1", "Custom.1", each Text.Combine({"Status", Number.ToText[ActivityID]}," " ))

 

I am open to suggestions!

 

My current work around is to change the data type to text, but this will cause issues later on

4 REPLIES 4
v-lili6-msft
Community Support
Community Support

hi, @Anonymous

For two text column, you could use & to concatenate them.

In your case, you want to concatenate a numeric column with text, so use Number.ToText Function add aformula as Interkoubess

And if you want to add a space between two field? if so you could try this

Table.AddColumn(#"Added Custom", "Custom.1", each [Status]&" "&Number.ToText([ActivityID]))

2.JPG

Result:

3.JPG

 

If it is not your case, please share some data sample and expected output. Do mask sensitive data before uploading.


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.
Interkoubess
Solution Sage
Solution Sage

Hi @Anonymous,

 

Try this :

 

Table.AddColumn(#"Added Custom1", "Custom.1", each [Status] & Number.ToText([ActivityID]))

I suppose [Status] is a column.

 

Ninter

 

Anonymous
Not applicable

Thanks for the reply. Actually, "Status" is free text. The pivoted columns are all numeric, and after pivoting becomes fields called 1,2,3...

It also works with free text.

 

Ninter

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.