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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
shuang
Frequent Visitor

Combine columns from different tables

 

Hello, Newbie here. I know others have posted similar questions, but couldn't find a way to do mine. 

 

So I have two tables:

Table 1

IDCollection DatespeciesLatitudeLongitudeTest statusaction

 

Table 2:

Sub_IDSample datespeciesLatitudeLongituderesult

 

 

Table 1 and 2 have no relationship. What I want to do is to creat a new table, Table 3 in this way:

 

combine ID from Table 1 and Sub_ID from Table 2 into column "Identification" in Table 3

combine Collection Date from Table 1 and Sample Date from Table 2 into column "Date" in Table 3

combine Test status from Table 1 and result from Table 2 into column "Status" in Table 3

...

 

New Table 3 looks like this

IdentificationdatespecieslatitudeLongitudeStatus

 

I need to keep every single rows from each table. How can I do this?

 

Thanks you. 

 

1 ACCEPTED SOLUTION

Rename the Column Head of both table, and make sure that the two are equal.


IN powerquery  select the most recent table, and then "Apend New Queries" 

View solution in original post

4 REPLIES 4
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @shuang,

 

Agree with rafaelmpsantos. 

 

Have you solved your problem?

 

If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

If you still need help, please share your data sample and your desired output so that we could help further on it.

 

Best  Regards,

Cherry

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

These 2 tables has the same numbers of rows? in each row number of tableA you have in tableB the correspondent value in the same row?

They have different rows. Table 1 has 2000 plus rows and Table 2 has about 300 rows. They are totally different set of data and are not related in anyway. Table 1 is from a very old database and Table 2 is a newer one. We just need to put them together. Thanks. 

Rename the Column Head of both table, and make sure that the two are equal.


IN powerquery  select the most recent table, and then "Apend New Queries" 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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