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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
shaya
Helper I
Helper I

Import two tables from two DB as UNION

Hello
I want to compare data between two companies,
two companies are from two DB (same server, and the same structure) .
I want to import tables as UNION.
Is it possible and how?
Thanks
(In QLICK VIEW this is possible)
1 ACCEPTED SOLUTION

7 REPLIES 7
shaya
Helper I
Helper I

Hello Tom
At first, I was looking for the MERGE in SQL, it was my mistake,
after that I found it in the help of POWER BI thanks to you.

You're welcome!



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
TomMartens
Super User
Super User

It is also possible in Power BI

Before using Append to create one table with records from both tables create a custom column "Source" with values to mark the records with their source



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
sokg
Solution Supplier
Solution Supplier

Do you know the difference  between merge and append?

did not know before, I read about MERGE, I did not find APPEND
1. Still if I write a query, I am in the DB environment of one company.
2. I also do not need the MATCHED, because I want all records, the only field that is changed is the company name.


The question is, how can I see the two tables together

And thanks again

Thank you all

Step 1

Connect to your table from company 1 and make all your transformations

 

Step 2

Connect to your table from company 2 and make all your transformations

 

Step 3

Go to Query Editor

Table Append 0.png

 

 

Step 4a

Mark one of the Queries and in the home tab

Table Append 1.png

 

Step 4b
choose the appropriate Append option
Table Append 1b.png

 

Step 4c

choose the table to append

 

Hope this helps

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.