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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
tebtim19
Helper IV
Helper IV

Combine column

Anyone could help me with combining column in different tables? 

I have the following

Table A

   Email Address

   Age

   Address

   Code

  

  

 

Table B

   Full Name

   First Name

    Last Name

 

I need to create a column 

Where I will get the full name from table B to table A,

and relate the email address and full name

so I will get the same data in my New Full Name

 

 

output:

tebtim19_0-1615893287905.png

 

 

 

 

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

Hi, @tebtim19 

According to your description and sample picture, I guess that you want to get a column that can combine the value of email address and full name from two tables, I think you can achieve this using merge query in the Power Query and DAX to combine them, you can try my steps:

I’ve created some data and give the two tables [Code] as the relative column.

  1. Go to the Power query, merge query like this:

v-robertq-msft_0-1616037020486.png

 

v-robertq-msft_1-1616037020490.png

 

Then expand the table and select [Full name] column.

  1. And apply the change and create a new column in the table A like this:
Name&Email =

COMBINEVALUES(": ",[Table B.Full Name],[Email Address])

 

And you can get what you want, like this:

v-robertq-msft_2-1616037020493.png

 

You can download my test pbix file here

 

If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.

How to Get Your Question Answered Quickly 

 

Best Regards,

Community Support Team _Robert Qin

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

2 REPLIES 2
v-robertq-msft
Community Support
Community Support

Hi, @tebtim19 

According to your description and sample picture, I guess that you want to get a column that can combine the value of email address and full name from two tables, I think you can achieve this using merge query in the Power Query and DAX to combine them, you can try my steps:

I’ve created some data and give the two tables [Code] as the relative column.

  1. Go to the Power query, merge query like this:

v-robertq-msft_0-1616037020486.png

 

v-robertq-msft_1-1616037020490.png

 

Then expand the table and select [Full name] column.

  1. And apply the change and create a new column in the table A like this:
Name&Email =

COMBINEVALUES(": ",[Table B.Full Name],[Email Address])

 

And you can get what you want, like this:

v-robertq-msft_2-1616037020493.png

 

You can download my test pbix file here

 

If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.

How to Get Your Question Answered Quickly 

 

Best Regards,

Community Support Team _Robert Qin

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

amitchandak
Super User
Super User

@tebtim19 ,refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

 

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

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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