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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Copy column from one table to another table

Hi,

 

I am trying to copy the value from a column (self) from a table called GetIssues to another table called 49407.

I created a new column called Self in 40407 and I tried to use LOOKUPVALUE but I am not able to copy the information from one table to the other one. 

Thanks in advance 

 

2 ACCEPTED SOLUTIONS
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

One sample for your reference, please check the following steps as below.

 

1. Insert index column in both table in power query.

Capture.PNG

2. Close and apply, then we use the LOOKUPVALUE to get the excepted result.

Self in 40407 = LOOKUPVALUE(GetIssues[Self],GetIssues[Index],'49407'[Index])

2.PNG

 

For more details, please check the pbix as attached.

 

 

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

Hi @Anonymous ,

 

 

merge This should help you.

 

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





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

Proud to be a Super User!




View solution in original post

8 REPLIES 8
BIWorker10AW
Helper I
Helper I

How to do this in Power Query ( Without using append or merging & DAX?)

Joan_Wanjiru_
Frequent Visitor

Add index columns in both tables then merge the tables using the two index columns. or if the data source is excel you can copy from excel and paste into your table in power query.

v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

One sample for your reference, please check the following steps as below.

 

1. Insert index column in both table in power query.

Capture.PNG

2. Close and apply, then we use the LOOKUPVALUE to get the excepted result.

Self in 40407 = LOOKUPVALUE(GetIssues[Self],GetIssues[Index],'49407'[Index])

2.PNG

 

For more details, please check the pbix as attached.

 

 

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Anonymous
Not applicable

Thanks, it works, but I am looking to get all the rows from GetIssues [self], in the 49407.

In 49407 there are only 3 rows but I need all the rows from GetIssues [self].

Is there any way to have all the rows?

Thanks in advance

Anonymous
Not applicable

Quick question that it might resolve my issue.

How can I create a new table in the query editor and add a column using the LOOKUPVALUE as mentioned before?

I am looking to create a new table and copy all the information from GetIssues[Self] to a new table with a new column.

Thanks in advance for your help 

Hi @Anonymous ,

 

 

merge This should help you.

 

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





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

Proud to be a Super User!




Nathaniel_C
Super User
Super User

Hi @Anonymous ,

You can look at my post here, on merge...merge post

 

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





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

Proud to be a Super User!




jdbuchanan71
Super User
Super User

hello @Anonymous 

You will have to share the structure of the tables and what field(s) they have in common.  A sample of both tables in a format we can copy and paste (not a screen shot) would be helpful as well.  You can copy from excel and paste directly into a post.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.