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
HarryB
Resolver I
Resolver I

Source name transfer from column to new column

Hi,

 

I have 2 tables and I want to transfer different lead source text  from one column in a table to a new column in a different table.

 

Is there a dax example function which will allow me to do that.

 

Thanks,

 

Harry B

 

 

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

Hi @HarryB 

If you have the same columns between the two tables, and the column names and column types are the same, you can use the Merge queries feature directly in Power Query

 Merge queries overview - Power Query | Microsoft Learn

If the two tables do not have the same columns, but there are corresponding relationships, you may be able to use the Addcolumns() function, please refer to the following link for details

 ADDCOLUMNS function (DAX) - DAX | Microsoft Learn

If the suggestion above can not meet your requirements, can you follow some sample data or pictures?

Best Regards,

Yolo Zhu

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

3 REPLIES 3
HarryB
Resolver I
Resolver I

Thank you @amitchandak @v-xinruzhu-msft  for both of your solutions.

v-xinruzhu-msft
Community Support
Community Support

Hi @HarryB 

If you have the same columns between the two tables, and the column names and column types are the same, you can use the Merge queries feature directly in Power Query

 Merge queries overview - Power Query | Microsoft Learn

If the two tables do not have the same columns, but there are corresponding relationships, you may be able to use the Addcolumns() function, please refer to the following link for details

 ADDCOLUMNS function (DAX) - DAX | Microsoft Learn

If the suggestion above can not meet your requirements, can you follow some sample data or pictures?

Best Regards,

Yolo Zhu

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

@HarryB , refer 4 ways (related, relatedtable, lookupvalue, sumx/minx/maxx with filter) to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

 

 

In power query you can merge and take the column

 

Merge Tables (Power Query) : https://www.youtube.com/watch?v=zNrmbagO0Oo&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=16

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

April Fabric Community Update

Fabric Community Update - April 2024

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

March 2024 PBI Gallery Image

Power BI Monthly Update - March 2024

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