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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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