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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
nataliesmiy1357
Helper IV
Helper IV

Changing data type

I am tryin to create a new column in my tables in power query, and I keep getting this error.  I'm not sure how to change the datatype or make it so that this works.  I am trying to create a new custom column with the employee id and moduleid. Attached are the two screenshots that I get when I try to create this.  Thanks in advance.

 

test2.jpgtest1.jpg

3 REPLIES 3
Anonymous
Not applicable

Hi @nataliesmiy1357,
AFAIK, the current power query not support do concatenate operations with different data types.

In my opinion, I'd like to suggest you use the 'Text.From' function to transform these values to text before concatenating operations:

Text.From([Emploee Id]) & "|" & Text.From([ModuleID])

Regards,
Xiaoxin Sheng

amitchandak
Super User
Super User

@nataliesmiy1357 , I think employee Id is number , convert to text using

Number.ToText([Emploee Id])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

I tried that.... and now I'm getting this error:

 

How do I fix this?

nataliesmiy1357_0-1643639867351.png

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors