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
awawaw
Helper I
Helper I

Copy data to other columns

Hello everyone,

I have a question, please help me with this. 

How can I copy the data in Table2. to corresponding column like the screenshot belowing. 

awawaw_0-1674237354566.png

Thank you

5 REPLIES 5
bolfri
Super User
Super User

I think is what you did is merge queries and you suppose to use append queries.

Refference: https://www.youtube.com/watch?v=oUB11A855g8

 

 





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

Proud to be a Super User!




Hi @bolfri 

Thanks for replying me.

I do need to merge queries, buecause I need to follow some logics to remove or add data so I choose to merge them. I need to know which table it's coming from.

Can you provide some sample data to work with and the logic you want to apply?

 

On your example you have same columns and business meaning that's why I said it would be better to append them. Even with appending data you can save an information about the source table name.





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

Proud to be a Super User!




The logics are simple. Only 2 rules.

1. if name shows in table1 but not table 2 then remove it from table 1.

2. if name shows in table 2 but not in table 1 then add it into table 1.  

All the data fields are same for both table. 

My idea is merge them together and expand the table. Adda new column to check I want to remove or add or keep. So I got the table you saw.

In this case it's still better to do the append with filltering out the records from table 1/2 (putting your logic) than creating custom column that combines them together. It's more manual work. To avoid manual work you can use Power Query M to do that for you.





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

Proud to be a Super User!




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.