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
SRBI
Regular Visitor

HOW TO COPY A DATA COLUMN FROM ANOTHER TABLE!

Hi Friends

 

I need to copy a Column(with data) from one table to another .. how it is possible ?

 

Regards

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

Hi @SRBI ,

 

It depends on whether there is a correspondence between the two tables. If so, you can use merge query or create calculated column by RLATED function.  https://radacad.com/append-vs-merge-in-power-bi-and-power-query

 

If not, you can create index columns in both table and :

Capture12.PNGCapture13.PNG

 

Then use lookupvalue function:

 

 

Column = LOOKUPVALUE(Table2[Column1],Table2[Index],'Table'[Index])

 

 

Capture14.PNG

 

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

 

Best Regards,

Dedmon Dai

 

View solution in original post

3 REPLIES 3
v-deddai1-msft
Community Support
Community Support

Hi @SRBI ,

 

It depends on whether there is a correspondence between the two tables. If so, you can use merge query or create calculated column by RLATED function.  https://radacad.com/append-vs-merge-in-power-bi-and-power-query

 

If not, you can create index columns in both table and :

Capture12.PNGCapture13.PNG

 

Then use lookupvalue function:

 

 

Column = LOOKUPVALUE(Table2[Column1],Table2[Index],'Table'[Index])

 

 

Capture14.PNG

 

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

 

Best Regards,

Dedmon Dai

 

amitchandak
Super User
Super User

@SRBI , In power query you have merge two table and then choose the column you need.

https://radacad.com/append-vs-merge-in-power-bi-and-power-query

in Dax there are few way - refer to my video : https://www.youtube.com/watch?v=czNHt7UXIe8

mahoneypat
Employee
Employee

There are a few potential ways to do this (e.g., merge, add as custom column, use Table.FromColumns).  Please explain further with example/mock tables.

 

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


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.